sort rows of a matrix based on their maximum value
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
Consider a 100x10 matrix.
Each 1x10 row has a maximum value.
How can I sort the rows of the matrix in ascending order based only on their maximum value?
Thank you very much.
Best,
Pavlos
0 件のコメント
採用された回答
その他の回答 (2 件)
Azzi Abdelmalek
2013 年 9 月 11 日
編集済み: Azzi Abdelmalek
2013 年 9 月 11 日
Edit2
[ii,ii]=sort(max(A'))
BB=A(ii,:)
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!