Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matrix

조회 수: 2 (최근 30일)
sita
sita 2011년 12월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi.. A=[3 4 5 6 4 3] if A(:)>5 some statement end
In above code if i want to know where that condition was true (row, column where the condition is true)..how to get it in matlab?? Please help in this regards.
thanks,, Sita

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2011년 12월 7일
[row,col] = find(A>5)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by