Info

此问题已关闭。 请重新打开它进行编辑或回答。

Matrix

1 次查看(过去 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