Feeds
답변 있음
How to find relevent principal component .
Calculate the quantity: cumsum(evalues)./sum(evalues) The will show you the cumulative variance explained by keeping the...
How to find relevent principal component .
Calculate the quantity: cumsum(evalues)./sum(evalues) The will show you the cumulative variance explained by keeping the...
11년 초과 전 | 0
| 수락됨
답변 있음
How to Cope XLS Worksheet using Matlab
Hi Bill, you can use dos commands from within MATLAB to copy the file: original_file = 'orginal_file_name'; copied_file ...
How to Cope XLS Worksheet using Matlab
Hi Bill, you can use dos commands from within MATLAB to copy the file: original_file = 'orginal_file_name'; copied_file ...
11년 초과 전 | 1
답변 있음
sorting a time series
You need to use the optional output from the sort function that contains the sort order. [Y, idx] = sort(time_series); Z...
sorting a time series
You need to use the optional output from the sort function that contains the sort order. [Y, idx] = sort(time_series); Z...
거의 12년 전 | 2
| 수락됨
답변 있음
Apply a mask to 4D medical images in a vectorized way
Something like this: fV = V.*M(:,:,ones(1,size(V,3)),ones(1,size(V,4))); Conrad
Apply a mask to 4D medical images in a vectorized way
Something like this: fV = V.*M(:,:,ones(1,size(V,3)),ones(1,size(V,4))); Conrad
거의 12년 전 | 1
답변 있음
Passing a matlab array into C# DLL
Hi John, what about creating a wrapper method with signature double[,] RGBConvertWRP(int ncols, ...
Passing a matlab array into C# DLL
Hi John, what about creating a wrapper method with signature double[,] RGBConvertWRP(int ncols, ...
거의 12년 전 | 0
답변 있음
Sorting multi Dimension matrix
Hi, you need to sort along the third dimension: % Create dummy data. fset(:,:,1) = rand(5,16); fset(:,:,2) = zeros(5...
Sorting multi Dimension matrix
Hi, you need to sort along the third dimension: % Create dummy data. fset(:,:,1) = rand(5,16); fset(:,:,2) = zeros(5...
거의 12년 전 | 0
| 수락됨
답변 있음
Delete a cell by a criterion???
Hi Thor, try the following: % Create dummy data. S = cell(1,2,2); l1(288,3).Value = 1; l2(280,3).Value = 1; ...
Delete a cell by a criterion???
Hi Thor, try the following: % Create dummy data. S = cell(1,2,2); l1(288,3).Value = 1; l2(280,3).Value = 1; ...
거의 12년 전 | 0
| 수락됨
답변 있음
How do I insert values into my bar plot (with 2 columns per x value)?
You can try something like this: A = [1 2 3 4 5]; B = [4 7; 2 9; 3 7; 4 8; 1 3]; bar(A,B); xOffsets = [-0.16...
How do I insert values into my bar plot (with 2 columns per x value)?
You can try something like this: A = [1 2 3 4 5]; B = [4 7; 2 9; 3 7; 4 8; 1 3]; bar(A,B); xOffsets = [-0.16...
거의 12년 전 | 0
답변 있음
ask for reference of SOM and clustering using Matlab
For an introduction see: <http://davis.wpi.edu/~matt/courses/soms/>. You could also try the toolbox: <http://www.cis.hut.fi/p...
ask for reference of SOM and clustering using Matlab
For an introduction see: <http://davis.wpi.edu/~matt/courses/soms/>. You could also try the toolbox: <http://www.cis.hut.fi/p...
대략 12년 전 | 0
답변 있음
Change equation in fsolve inside a loop
Try using anonymous functions: f1 = @(x) [x(1)+x(2)*x(2)+7*x(3) ;log(x(1))+exp(x(2))+x(3);3*x(1)+x(2)*x(3)+2]; f2 = @(x)...
Change equation in fsolve inside a loop
Try using anonymous functions: f1 = @(x) [x(1)+x(2)*x(2)+7*x(3) ;log(x(1))+exp(x(2))+x(3);3*x(1)+x(2)*x(3)+2]; f2 = @(x)...
대략 12년 전 | 0
| 수락됨
답변 있음
write variable in symbolic way
Try this: g = 1; x = ones(1,10); A = @(i) x(i+3*g)/(x(i+4*g)+x(i+5*g)); You can then use A(1) etc...
write variable in symbolic way
Try this: g = 1; x = ones(1,10); A = @(i) x(i+3*g)/(x(i+4*g)+x(i+5*g)); You can then use A(1) etc...
대략 12년 전 | 0
답변 있음
plz anyone solve the following question for me in matlab and reply quick.regards
Try this X=[-4 -1 0 2 10]; Y=[-5 -2 2 5 9]; [~,idx] = find(X>Y);
plz anyone solve the following question for me in matlab and reply quick.regards
Try this X=[-4 -1 0 2 10]; Y=[-5 -2 2 5 9]; [~,idx] = find(X>Y);
대략 12년 전 | 0
답변 있음
sum a column depending on another column
Something like this: % Dummy data. A =[ NaN 6 NaN 1;... NaN 9 NaN 0;... NaN 10 NaN 1]; idx = A...
sum a column depending on another column
Something like this: % Dummy data. A =[ NaN 6 NaN 1;... NaN 9 NaN 0;... NaN 10 NaN 1]; idx = A...
12년 초과 전 | 0
답변 있음
Make no space between axes of a figure with boundaries of that figure windows
You could do the following: h1=figure; plot(rand(10)); set(gca,'Position',[0 0 1 1]);
Make no space between axes of a figure with boundaries of that figure windows
You could do the following: h1=figure; plot(rand(10)); set(gca,'Position',[0 0 1 1]);
12년 초과 전 | 1
| 수락됨
답변 있음
problem with an if statement
Okay, think I know what you mean... this should do it. c5 = [A(2:end,5); NaN]; idx = ((A(:,4)==1)|(A(:,4)==2))&(A(:,...
problem with an if statement
Okay, think I know what you mean... this should do it. c5 = [A(2:end,5); NaN]; idx = ((A(:,4)==1)|(A(:,4)==2))&(A(:,...
12년 초과 전 | 0
| 수락됨
답변 있음
Recommended steps to deal with a slow loop
I would recommend that you first focus on what happens inside the for loop... why is it taking so long? Get a complete breakdown...
Recommended steps to deal with a slow loop
I would recommend that you first focus on what happens inside the for loop... why is it taking so long? Get a complete breakdown...
12년 초과 전 | 0
답변 있음
How to find equation of curve if just graph is given
You will have to make some assumptions about the functional form of the curve... for example if you know the curve is of the for...
How to find equation of curve if just graph is given
You will have to make some assumptions about the functional form of the curve... for example if you know the curve is of the for...
12년 초과 전 | 0
답변 있음
Mapping a graph on a sphere.
See the code below. It shows how to do it for two points but this is really all you need, just do the same for the other points....
Mapping a graph on a sphere.
See the code below. It shows how to do it for two points but this is really all you need, just do the same for the other points....
12년 초과 전 | 1
답변 있음
how can i define an array with different increments?
Something like this t = [ 0:0.1:1,... % increment of 0.1 1.2:0.2:4,... % increment of 0.2 4.3...
how can i define an array with different increments?
Something like this t = [ 0:0.1:1,... % increment of 0.1 1.2:0.2:4,... % increment of 0.2 4.3...
12년 초과 전 | 1
답변 있음
Xlsread and xlswrite; easy small help
You could try this: excelFileName = 'Test.xls'; f1 = sin((0:360)*pi/180)'; success = xlswrite(excelFileName,p); ...
Xlsread and xlswrite; easy small help
You could try this: excelFileName = 'Test.xls'; f1 = sin((0:360)*pi/180)'; success = xlswrite(excelFileName,p); ...
12년 초과 전 | 0
| 수락됨
답변 있음
Initialization of array of structure
The following code should do the trick: function is = StructInit(s) is = s; if isstruct(s) ...
Initialization of array of structure
The following code should do the trick: function is = StructInit(s) is = s; if isstruct(s) ...
12년 초과 전 | 0
답변 있음
plotyy does not what i want...
Hi Florian plotyy(x1,y1,x2,y2) The length of y1 must be the same as x1 and the length of y2 must be the same as x2 but x...
plotyy does not what i want...
Hi Florian plotyy(x1,y1,x2,y2) The length of y1 must be the same as x1 and the length of y2 must be the same as x2 but x...
12년 초과 전 | 0
| 수락됨
답변 있음
how to change the colors of bars in a bar graph?
You could try a similar approach to the one given below (just extend it for your purposes): p1X = [1 2 3]; p1Y = [1 4 5];...
how to change the colors of bars in a bar graph?
You could try a similar approach to the one given below (just extend it for your purposes): p1X = [1 2 3]; p1Y = [1 4 5];...
12년 초과 전 | 2
| 수락됨
답변 있음
In a cell with matrix entries, loop through to delete empty matrices
Let R denote your cell array that contains the matrices, then the following should suffice: K = R(~cellfun(@isempty,R))...
In a cell with matrix entries, loop through to delete empty matrices
Let R denote your cell array that contains the matrices, then the following should suffice: K = R(~cellfun(@isempty,R))...
12년 초과 전 | 1
| 수락됨
답변 있음
In a cell with 255x1 entries, find the intersection of each entry list with all other entry lists
Hi Rebecca, you could try this: C = { [ 1 2 3; 4 5 6; 2 3 1]; [ 1 3 3; ...
In a cell with 255x1 entries, find the intersection of each entry list with all other entry lists
Hi Rebecca, you could try this: C = { [ 1 2 3; 4 5 6; 2 3 1]; [ 1 3 3; ...
12년 초과 전 | 0
| 수락됨
답변 있음
strings comparison with if then in array
Hi Udiubu, you can use strcmp: strcmp(alpha(x,7),'miss') You can also get rid of the for loop by using logical indexing;...
strings comparison with if then in array
Hi Udiubu, you can use strcmp: strcmp(alpha(x,7),'miss') You can also get rid of the for loop by using logical indexing;...
12년 초과 전 | 1
| 수락됨
답변 있음
problem in inserting a diagnol
A = [ 1 2 3;... 4 5 6;... 7 8 9]; A(1:(length(A)+1):numel(A)) = 2*diag(A);
problem in inserting a diagnol
A = [ 1 2 3;... 4 5 6;... 7 8 9]; A(1:(length(A)+1):numel(A)) = 2*diag(A);
12년 초과 전 | 0
답변 있음
How to make a simple gui to plot a scatter graph?
Hi Kokalz, the code below should get you started: function DemoGUI() % Initialise variables: excelFileName = ...
How to make a simple gui to plot a scatter graph?
Hi Kokalz, the code below should get you started: function DemoGUI() % Initialise variables: excelFileName = ...
12년 초과 전 | 1
| 수락됨
답변 있음
How can I color code lines in graphs depending on quality of data?
Hi Viktor, you can try something like this: t = 0:0.001:2*pi; x = [sin(t);2*sin(t)]'; y = [cos(t);2*cos(t)]'; % Create d...
How can I color code lines in graphs depending on quality of data?
Hi Viktor, you can try something like this: t = 0:0.001:2*pi; x = [sin(t);2*sin(t)]'; y = [cos(t);2*cos(t)]'; % Create d...
12년 초과 전 | 0
답변 있음
how to add the sequences in the mat lab?
Did you mean something like this? A = [1 2 3 4]; B = [1 2]; B = [B zeros(1,length(A)-length(B))]; B will the...
how to add the sequences in the mat lab?
Did you mean something like this? A = [1 2 3 4]; B = [1 2]; B = [B zeros(1,length(A)-length(B))]; B will the...
12년 초과 전 | 0
| 수락됨