Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
hi
i have a matrix size 378x5, how do i find the index column of the maximum value of each row?
Thanks
  1 Commento
Rik
Rik il 30 Mag 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.

Accedi per commentare.

Risposta accettata

meghannmarie
meghannmarie il 30 Mag 2019
[~,I] = max(A,[],2)

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by