how to sort only first column in matlab
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
X=0.5 1.0;0.1 2;2.5 4 output must be like 0.1 2;0.5 1.0;2.5 4
0 件のコメント
採用された回答
  Star Strider
      
      
 2016 年 8 月 27 日
        Use the sortrows funciton:
X = [0.5 1.0;0.1 2;2.5 4];
Output = sortrows(X, 1)
Output =
          0.1            2
          0.5            1
          2.5            4
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				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!

