To order min to max value for matrix's row
古いコメントを表示
a=[0.412 0.322 0.300 0.112;0.222 0.05 0.350 0.555]
% I wanna order row's value min to max. like that;
a=[0.112 0.300 0.322 0.412;0.05 0.112 0.222 0.350 0.555]
採用された回答
その他の回答 (2 件)
Youssef Khmou
2014 年 5 月 7 日
Try :
a=sort(a,'ascend');
カテゴリ
ヘルプ センター および File Exchange で Matrix Decomposition についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!