return index of biggest element in a row-matrix.

1 次查看(过去 30 天)
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 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by