Matrix
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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
Answers (1)
Grzegorz Knor
on 7 Dec 2011
[row,col] = find(A>5)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!