Réponse apportée
How to read matrix into a variable increment?
Your question is not clear. Do you mean something like this? A=zeros(10); A(:,1)=rand(10,1); B=sort(A); Where B co...

environ 13 ans il y a | 0

Réponse apportée
how i can remove the for statement from this program?
you should initialize your _n_ matrix to perform the assignment.

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Reading several Excel files
1) It is not possible to read every 100 cells, but you can do: r=1:100:1000; f=xlsread('my_xls_file.xls'); f=f(r); ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
i m working on gui. i have initialize one matrix at the starting n now i want to use it in switch statement with variation .
If you want to get rid of columns you can use the following example: B= rand(3); % 3x3 matrix B=B(:,1) % 3x1 matrix ...

environ 13 ans il y a | 0

Réponse apportée
Import data and display on a graph in a GUI
Each plot has to have its unique identifier ( Property Inspector -> tag ), then: plot(my_x,my,x,'Parent',plot_handle...

environ 13 ans il y a | 0

Réponse apportée
Loop is taking a lot of time
Matlab 2013 in a i3 machine takes time = 0.3825 seconds to perform your code. I guess your problem lies on yo...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Plotting normal curve and a third order polynomial
what's your y data? Your code is full of useless stuff and "magic" numbers. Add this at the end of your code: axis([0 30...

environ 13 ans il y a | 0

Réponse apportée
Curve-fitting part of a data set
If I am not wrong, you are doing this: % tau = -1./p(1) % Temp0 = exp(p(2)) % Temp_t = Temp0*exp(-(tm-t0)/tau); ...

environ 13 ans il y a | 0

Réponse apportée
How to display the calcution process with progress bar?
Is this what you are looking for? h = waitbar(0,'Please wait...'); steps = 1000; for step = 1:steps % computat...

environ 13 ans il y a | 8

| A accepté

Réponse apportée
How do I stoop overwriting the variable in a "for" loop?
Try this out: adj = zeros(nbs.NBS.n,1); % initialize the variable for i=1:nbs.NBS.n global nbs; adj=nbs.NBS...

environ 13 ans il y a | 0

Réponse apportée
Group Identical Values in Matrix While Maintaining Original Indicies
A=[ 1;1;2;2;2;3;3;3;4;4;4]; % example matrix [B ind]=unique(A); L = length(ind); C = cell(L,1); C{1} = A(1:ind(1)...

environ 13 ans il y a | 0

Réponse apportée
Matrix and element change and input help
I think you are trying to do just this: BB = reshape(B',9,1); I=input('number coord:'); player = 1; BB(I) = 2*(p...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Matrix and element change and input help
>>a=input('insert matrix) >>[1 2 3 4]

environ 13 ans il y a | 0

Réponse apportée
what does this error mean?
-As the message says, you are trying to get a field from a non-structure object. It seems either your x is not a structure or i...

environ 13 ans il y a | 1

Réponse apportée
Multiple figure in same subplot on figure
subplot(2,2,1) imshow(image1) subplot(2,2,2) imshow(image2) subplot(2,2,3) imshow(image1) subplot(2,2,4) ...

environ 13 ans il y a | 0

Réponse apportée
Problem with imrect. All the GUI became a little part of the image.
Did you try to make the background axis invisible to any plotting function? ha = axes('units','normalized', 'position',[0 0...

environ 13 ans il y a | 0

Réponse apportée
converting vector to matrix
vec=[0:4.80314960629921e-6:.00061]; my_matrix=zeros(8,16); for k=1:8 my_matrix(k,:) = vec(k*16-15:k*16); end

environ 13 ans il y a | 2

Réponse apportée
how to interpret this expression?
Let us suppose a = [1 2 3 4 5 6 7 8]; winLength = 3; N = 7; - a( N - winLength * 2 : N )=0 -> elements from N-winLengt...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to make a sequence number?
n=6; my_seq=linspace(1,n,n) my_seq = 1 2 3 4 5 6

environ 13 ans il y a | 2

Réponse apportée
how to change this matrix in this manner?
If you prefer an extended version: A = rand(6); % example matrix H = zeros(size(A,1)/2,size(A,1)*2); % initialize matrix...

environ 13 ans il y a | 0

Réponse apportée
How to change array elements?
I hope the following code is of help: % example matrix M=[-1 1 0; 1 0 -1; 0 0 1]; D_1_ = find(M==-1...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Maximum decimal and binary values
_de2bi_ is the only Matlab built-in function to perform the operation. If you need something different you have to code it your...

environ 13 ans il y a | 0

Réponse apportée
Anyone can help me to improve this code?
Ii this what you need? for k=1:n-1 if R(k,1) == 1 A(k,k)= c + A(k+1,k+1); else A(k,k) = A(k+1,k+1)...

environ 13 ans il y a | 0

Réponse apportée
I wanna save string data in my gui with txt format but I want to choose directory and file name in dialog box
[file_name PathName] = uigetfile('*.mat','Select *.mat file'); full_file_path = fullfile(PathName, file_name); fid = fo...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
I have a data which include point numbers, y_error and x_error belongs to point numbers (mx3 matrix) point numbers are string other values are double. I wanna check whether errors are exceeding particular number and I wanna show which point.
Use _find_ function. In the example below, _b_ contains the positions of elements greater than 0.5 within array _a_. a=[.1 ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
how to transfer elements in cell into matrix in MATLAB?
A=ones(3,1); C=cell(1); C{1} = A; %matrix to cell B = cell2mat(C) >>B = 1 1 1

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Restore orignal colors to the processed image
you can't. With every process of your image you loose information. When you grayscale (1D matrix) an colour image (3D matrix), y...

environ 13 ans il y a | 0

Réponse apportée
How to represent values in horizontal in bar chart
x=rand(12,1); y=rand(12,1); plot(x,y,'o') months = ['Jan'; 'Feb'; 'Mar'; 'Apr'; 'May'; 'Jun'; 'Jul'...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to change the size of Matlab 2013 Toolstrip icons and fonts?
If you are a Windows User, go to Control Panel->Screen. Set the configuration that best suits your needs

environ 13 ans il y a | 0

Réponse apportée
How to change the size of Matlab 2013 Toolstrip icons and fonts?
You can change it through you OS configuration. Matlab does not control the sizes of toolstrip icons since that is a parameter c...

environ 13 ans il y a | 0

Charger plus