Hi.
I have two matrix with unique rows. Matrix A (228 x 9) and B(256 x 9) in one way or another have exact matching rows. I want to find the index where each row of B is a match of any row in A and store a new variable C (where all the indices are found). I tried matching manually per row of B against A. But it's taking me so long. I tried using for loop but I can't seem to figure out with ismember function.
Here's how I did it with single row from B.
[lia, locb] = ismember(A, B(1,:), 'rows'); % starting off from row 1.
Any help would be appreciated.
Cheers
Best Answer