Daniele Mascali
Content Feed
답변 있음
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))
대략 3년 전 | 2
| 수락됨
답변 있음
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(...
대략 3년 전 | 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...
대략 5년 전 | 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)...
5년 초과 전 | 답변 수: 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{:}]
5년 초과 전 | 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
5년 초과 전 | 0
| 수락됨