MATLAB: Find matching indexes

matchingmatrix

I have two matrices:
A: x rows and 5 columns
B: x rows and 6 columns (the first column contains indexes)
The values of the matrix A are included in the matrix B. I would like to find the indexes of the matrix A (one row)

Best Answer

Index_find = find(ismember(A,B));