Finding column number of maximum of an array:
8 views (last 30 days)
Show older comments
How to find the column number of numerically max number of an array:
0 Comments
Answers (1)
Image Analyst
on 1 Aug 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 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!