Community Profile

photo

Alireza


Active since 2012

Followers: 0   Following: 0

Message

Statistics

Feeds

View by

Question


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...

11 years ago | 1 answer | 0

1

answer

Question


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...

11 years ago | 1 answer | 0

1

answer

Question


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 ...

11 years ago | 1 answer | 0

1

answer

Question


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)=...

11 years ago | 1 answer | 0

1

answer