![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/12802877_1525792330018_DEF.jpg)
Daniele Mascali
Followers: 0 Following: 0
Feeds
已回答
Extracting only real numbers from a vector containing both real and complex values
Try this: real(A(imag(A) == 0))
Extracting only real numbers from a vector containing both real and complex values
Try this: real(A(imag(A) == 0))
4 years 前 | 3
| 已接受
已回答
Correlation Coefficient of two 3-D matrices
Considering A and B your two matrices, you could use the following code: %reshape each matrix SIZE = size(A); A_2d = reshape(...
Correlation Coefficient of two 3-D matrices
Considering A and B your two matrices, you could use the following code: %reshape each matrix SIZE = size(A); A_2d = reshape(...
4 years 前 | 2
| 已接受
已回答
How do I loop through a structure field which contains multiple arrays?
If you want to make your last attempt work, you might use eval: eval(['plot(subjects.sessions.trials(i).data.angles.',AngleName...
How do I loop through a structure field which contains multiple arrays?
If you want to make your last attempt work, you might use eval: eval(['plot(subjects.sessions.trials(i).data.angles.',AngleName...
6 years 前 | 0
| 已接受
提问
Edges of scatter plot don't respect layers
When using scatter plot, e.g.: scatter(X,Y,17,CUSTOMCOLORMAP,'filled','MarkerEdgeColor',[0 0 0],'marker','o','linewidth',0.1)...
6 years 前 | 0 个回答 | 0
0
个回答已回答
How to write all data of a cell array into one big list?
If A is your cell array, you might try: [A{:}]
How to write all data of a cell array into one big list?
If A is your cell array, you might try: [A{:}]
6 years 前 | 1
| 已接受
已回答
How to combine arrays using NaN?
One possible solution: FinalArray = nan(size(A)); FinalArray(find(not(isnan(A)))) = B
How to combine arrays using NaN?
One possible solution: FinalArray = nan(size(A)); FinalArray(find(not(isnan(A)))) = B
6 years 前 | 0
| 已接受