Feeds
已回答
Please help, logical indexing of 3D matrices
Does changing from |D = A(:,:,1)| to |D = A(:,:,1).*B| and then assign |C(B) = D| help? Or does it still give memory problems?
Please help, logical indexing of 3D matrices
Does changing from |D = A(:,:,1)| to |D = A(:,:,1).*B| and then assign |C(B) = D| help? Or does it still give memory problems?
9 years 前 | 0
已回答
how to delete the rest of the zeros from a matrix
To remove 0, you can simply do: |c(~c) = [];| you don't need a loop! Beauty of matlab :) ~c is essentially looking for empty...
how to delete the rest of the zeros from a matrix
To remove 0, you can simply do: |c(~c) = [];| you don't need a loop! Beauty of matlab :) ~c is essentially looking for empty...
9 years 前 | 0
| 已接受
已回答
how can i read 20 files form excel for matlab together
|cd| to the directory containing all files |allfiles = dir;| |allfiles(1:2) = []; %this is because allfiles(1) = . & allfile...
how can i read 20 files form excel for matlab together
|cd| to the directory containing all files |allfiles = dir;| |allfiles(1:2) = []; %this is because allfiles(1) = . & allfile...
9 years 前 | 0
已回答
How can I split a table at given rows?
*Solution to this question:* B = cell(length(idx),1); %preallocates dimensions for i = 1:1:length(idx) %creates...
How can I split a table at given rows?
*Solution to this question:* B = cell(length(idx),1); %preallocates dimensions for i = 1:1:length(idx) %creates...
10 years 前 | 0
已回答
Error when calling fucntion
|rotate| is already an inbuilt matlab function. Change your function name to |rotate_val| or something else (so it doesn't over...
Error when calling fucntion
|rotate| is already an inbuilt matlab function. Change your function name to |rotate_val| or something else (so it doesn't over...
10 years 前 | 1
已回答
Creating a matrix for each point point in a data set
M = {}; % creating a cell array that will contain your 806 matrices for i = 1:806 M{i} = eye(4,4); M{i}(2:en...
Creating a matrix for each point point in a data set
M = {}; % creating a cell array that will contain your 806 matrices for i = 1:806 M{i} = eye(4,4); M{i}(2:en...
10 years 前 | 1
| 已接受
已回答
how to use a function
Try making the first line of your function as: function [x] = num2wordsarabe(n) And now use it in strrep. I'm no expert ...
how to use a function
Try making the first line of your function as: function [x] = num2wordsarabe(n) And now use it in strrep. I'm no expert ...
10 years 前 | 0
已回答
How to load the data from a specific excel files in a loop?
Try this and let me know if it works! % cd (<directory containing all the files you want to load>) allfiles = dir;...
How to load the data from a specific excel files in a loop?
Try this and let me know if it works! % cd (<directory containing all the files you want to load>) allfiles = dir;...
10 years 前 | 1
| 已接受
已回答
how to cluster using matlab
Easiest to implement is kmeans clustering. Look it up! Matrix = % your 8191x300 matrix NumC = 3 % number of clusters ...
how to cluster using matlab
Easiest to implement is kmeans clustering. Look it up! Matrix = % your 8191x300 matrix NumC = 3 % number of clusters ...
10 years 前 | 0
| 已接受
已回答
assign new names to matrices in loop
Agree with Stephen. However, if you have no choice, you can always start a loop with your conditions and sprintf should be able...
assign new names to matrices in loop
Agree with Stephen. However, if you have no choice, you can always start a loop with your conditions and sprintf should be able...
10 years 前 | 0
已回答
finding similar numbers and rounding to integers
Completely agree with John. But just in case: if length(find(fix([x1 x2 x3 x4 x5 x6 x7 x8])==1))>=2 ... condition ...
finding similar numbers and rounding to integers
Completely agree with John. But just in case: if length(find(fix([x1 x2 x3 x4 x5 x6 x7 x8])==1))>=2 ... condition ...
10 years 前 | 1
| 已接受
提问
row wise output for find(ismember(Values, searchValues,'rows'))
I have two matrices say foo and bah as follows: >> foo = 2 19 5 68 17 19 65 37 73 ...
10 years 前 | 1 个回答 | 0