How to call the row number of an element?
조회 수: 49 (최근 30일)
이전 댓글 표시
suppose I find a value after applying some formula and then need to find the row/column in the matrix where the value appears.
How do I do this?
댓글 수: 0
채택된 답변
Veronica Taurino
2022년 8월 3일
편집: Veronica Taurino
2022년 8월 3일
%[row,col] = find(__)
For example:
X = [1 0 2; 0 1 1; 0 0 4]
[row,col] = find(X==4)
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!