Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Matrix

3 ビュー (過去 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