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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 1 | 0