I have a matrix A = [a X b]
and a vector Z = [1 X z]
, where z > b
.
I want to find the indices of matrix A
for which Z
and each row of the matrix A
have the same value. I know I can do this by applying ismember
to each row of A
, but I would to find a faster solution without using a for
loop.