i used find command to locate the position for a particular number. it just mentions the position. how to find the corresponding row and column of the number
조회 수: 1 (최근 30일)
이전 댓글 표시
i used find command to locate the position for a particular number. it just mentions the position. how to find the corresponding row and column of the number a=[21 22 23;24 28 25;26 28 27]; i would like to know the row and column for number 28...
댓글 수: 0
채택된 답변
the cyclist
2013년 7월 4일
편집: the cyclist
2013년 7월 4일
Use find() with two output arguments
[i,j] = find(a==28)
as described in the documentation
>> doc find
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!