To order min to max value for matrix's row
Ältere Kommentare anzeigen
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]
Akzeptierte Antwort
Weitere Antworten (2)
Youssef Khmou
am 7 Mai 2014
Try :
a=sort(a,'ascend');
Kategorien
Mehr zu Matrix Decomposition finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!