return index of biggest element in a row-matrix.

조회 수: 4 (최근 30일)
Pramod Bhat
Pramod Bhat 2012년 1월 31일
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...

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 1월 31일
A - your matrix
[c,index] = max(A,[],2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by