How to find the row and column of elements where the value of A is the same as B
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Doug
am 15 Jul. 2014
Kommentiert: Image Analyst
am 15 Jul. 2014
A and B are matrices. Is there a function I'm missing?
0 Kommentare
Akzeptierte Antwort
Alfonso Nieto-Castanon
am 15 Jul. 2014
[i,j] = find(A==B);
2 Kommentare
Image Analyst
am 15 Jul. 2014
Make sure A and B are integers or else see the FAQ: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!