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

Réponses (1)

Grzegorz Knor
Grzegorz Knor le 7 Déc 2011

0 votes

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

Cette question est clôturée.

Tags

Question posée :

le 7 Déc 2011

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by