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...

채택된 답변

the cyclist
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개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by