MATLAB Answers


Find values of row in matrix

Asked by will99
on 19 Oct 2015
Latest activity Answered by TastyPastry on 19 Oct 2015
so I have matrix and index value I want to get all the values in the row I tried Find & ismember but I didn't get all the values in row 2
matrix = [8 81 82;20 22 23; 3 31 32];
index = 2

  1 Comment

I found solution ^^ but please suggest other ways if there is one

Sign in to comment.

1 Answer

Answer by TastyPastry on 19 Oct 2015
 Accepted Answer

ismember(A,B) returns a logical vector true when A is found in B, it doesn't apply here since you're not trying to create a logical mask.


Sign in to comment.