return index of biggest element in a row-matrix.

1 回表示 (過去 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)
  1 件のコメント
Pramod Bhat
Pramod Bhat 2012 年 1 月 31 日
thanq...got it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by