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!