sort rows of a matrix based on their maximum value
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
Consider a 100x10 matrix.
Each 1x10 row has a maximum value.
How can I sort the rows of the matrix in ascending order based only on their maximum value?
Thank you very much.
Best,
Pavlos
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Azzi Abdelmalek
am 11 Sep. 2013
Bearbeitet: Azzi Abdelmalek
am 11 Sep. 2013
Edit2
[ii,ii]=sort(max(A'))
BB=A(ii,:)
1 Kommentar
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!