Matrix

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 日

0 投票

[row,col] = find(A>5)

この質問は閉じられています。

タグ

質問済み:

2011 年 12 月 7 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by