Hi!
I have a generic matrix with random numbers (-1 and +1).
M=[ 1 -1 1 -1 1 1 1 -1 -1 1 -1 1 % <----- this row
1 1 -1 1];
How can I extract a row index?
a=[-1 1 -1 1];idx=3;
Thank you
findindexingmatrix arraymatrix manipulation
M=[ 1 -1 1 -1 1 1 1 -1 -1 1 -1 1 % <----- this row
1 1 -1 1];
a=[-1 1 -1 1];idx=3;
Best Answer