MATLAB: How to find the row and column of elements where the value of A is the same as B

matrices indexing

A and B are matrices. Is there a function I'm missing?

Best Answer

[i,j] = find(A==B);