how to find column index of max value for each row of a matrix 378x5 size?

16 ビュー (過去 30 日間)
Priscilla Schmitz
Priscilla Schmitz 2019 年 5 月 30 日
回答済み: meghannmarie 2019 年 5 月 30 日
hi
i have a matrix size 378x5, how do i find the index column of the maximum value of each row?
Thanks
  1 件のコメント
Rik
Rik 2019 年 5 月 30 日
(I'm on mobile so I can't check)
The second output of max can do this. You may need to use a loop.

サインインしてコメントする。

採用された回答

meghannmarie
meghannmarie 2019 年 5 月 30 日
[~,I] = max(A,[],2)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by