Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Matrix

2 Ansichten (letzte 30 Tage)
sita
sita am 7 Dez. 2011
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Grzegorz Knor
Grzegorz Knor am 7 Dez. 2011
[row,col] = find(A>5)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by