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?
0 件のコメント
採用された回答
Alfonso Nieto-Castanon
2014 年 7 月 15 日
[i,j] = find(A==B);
2 件のコメント
Image Analyst
2014 年 7 月 15 日
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!