How to find cell where max is located?
Ältere Kommentare anzeigen
Hi, I have a vector, 1X15 - one row and 15 columns and I can use the max command to find the maximum value among the cells. But how can I find out which column this max value is located in? Many thanks
Antworten (1)
Azzi Abdelmalek
am 10 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 10 Jul. 2015
A=[1 2 0 6 1 -1]
[max_val,idx]=max(A)
1 Kommentar
Ujjayant Chakravorty
am 10 Jul. 2015
Kategorien
Mehr zu Cell Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!