return index of biggest element in a row-matrix.

4 visualizzazioni (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)

Community Treasure Hunt

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

Start Hunting!

Translated by