return index of biggest element in a row-matrix.

8 vues (au cours des 30 derniers jours)
Pramod Bhat
Pramod Bhat le 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...

Réponse acceptée

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

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by