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

19 vues (au cours des 30 derniers jours)
hi
i have a matrix size 378x5, how do i find the index column of the maximum value of each row?
Thanks
  1 commentaire
Rik
Rik le 30 Mai 2019
(I'm on mobile so I can't check)
The second output of max can do this. You may need to use a loop.

Connectez-vous pour commenter.

Réponse acceptée

meghannmarie
meghannmarie le 30 Mai 2019
[~,I] = max(A,[],2)

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by