フィルターのクリア

sort entire row

2 ビュー (過去 30 日間)
Rahul
Rahul 2012 年 6 月 4 日
I have
a= 3 16
6 22
2 6
1 25
4 4
I need to sort 2nd column and keep the entire matrix according to sort of second column
i wan the output as
b=4 4
2 6
3 16
6 22
1 25

採用された回答

the cyclist
the cyclist 2012 年 6 月 4 日
b = sortrows(a,2);
  1 件のコメント
Rahul
Rahul 2012 年 6 月 4 日
thanks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by