Finding column number of maximum of an array:
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to find the column number of numerically max number of an array:
0 commentaires
Réponses (1)
Image Analyst
le 1 Août 2020
It could appear in more than one location. So do it this way:
maxValue = max(yourArray(:))
[rows, columns] = find(yourArray == maxValue)
columns will show you all the columns where the max value occurs.
0 commentaires
Voir également
Catégories
En savoir plus sur Cell Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!