hi i have a matrix as follows a =
2 3 4
4 3 2
1 2 3
>> sort(a)
ans =
1 2 2
2 3 3
4 3 4
i want to sort the matrix as follows
1 2 3
2 3 4
4 3 2
how to do this?

 採用された回答

Walter Roberson
Walter Roberson 2011 年 5 月 10 日

3 投票

sortrows(a)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および 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!

Translated by