Finding column number of maximum of an array:

9 ビュー (過去 30 日間)
Syed Muid Al Kais
Syed Muid Al Kais 2020 年 8 月 1 日
回答済み: Image Analyst 2020 年 8 月 1 日
How to find the column number of numerically max number of an array:

回答 (1 件)

Image Analyst
Image Analyst 2020 年 8 月 1 日
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.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by