Feeds
提问
How to obtain the row and column indices of a "bsxfun" matrix
I have a code as follows: A=rand(1,100); B=rand(1,1000); idx=bsxfun(@minus,A(:,1),B(:,1)')<0.2; I want to make a matri...
13 years 前 | 1 个回答 | 0
1
个回答提问
Duplicate the value of a cell for other cells in a matrix
Hello everyone, I have a large-size matrix A with 100 rows and 1000 columns. I was wondering how I can duplicate the value of...
13 years 前 | 1 个回答 | 0
1
个回答提问
Avoid for loops with if inside
Hello everyone, This is my code: counter=1; for i=1:size(A,1) for j=counter:size(B,1) if D(1,B(j,1))>0 ...
13 years 前 | 1 个回答 | 0
1
个回答提问
Avoid for loops with if inside
Hello everyone, I have a code as follows: for i=1:10000 for j=1:5000 if (A(1,i)-B(1,j)<5) C(i,j)=...
13 years 前 | 1 个回答 | 0