return index of biggest element in a row-matrix.

1 view (last 30 days)
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...

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!