return index of biggest element in a row-matrix.

1 Ansicht (letzte 30 Tage)
Pramod Bhat
Pramod Bhat am 31 Jan. 2012
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...

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 31 Jan. 2012
A - your matrix
[c,index] = max(A,[],2)

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by