return index of biggest element in a row-matrix.

1 visualizzazione (ultimi 30 giorni)
Friends, I have a row matrix. i have to return the index of the biggest element in the row. how can i do this ? thankq...

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 31 Gen 2012
A - your matrix
[c,index] = max(A,[],2)

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by