MATLAB: Return index of biggest element in a row-matrix.

matrix array

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…

Best Answer

A - your matrix
[c,index] = max(A,[],2)