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

1 次查看(过去 30 天)
A and B are matrices. Is there a function I'm missing?

采纳的回答

Alfonso Nieto-Castanon
[i,j] = find(A==B);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by