Hello i am trying to understand how to use this find function in matlab but i don't understand welll how it works , can anybody please explain to me where these answers are coming from ??
a =
11 5 9
15 1 6
17 12 21
>> [raws,coloms]=find(a>10)
raws =
1
2
3
3
3
coloms =
1
1
1
2
3

 채택된 답변

Stephen23
Stephen23 2020년 2월 24일
편집: Stephen23 2020년 2월 24일

2 개 추천

find returns the indices of non-zero elements of an array. You provided find with a logical array with these values:
>> a>10
ans =
1 0 0
1 0 0
1 1 1
That means the row and column indices are for those non-zero (i.e. true) values:

댓글 수: 1

kay Dee
kay Dee 2020년 2월 25일
Aaaah Thank you very much! i had just spent like 2 hours just trying to find out what it is . Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2020년 2월 24일

댓글:

2020년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by