sort rows of a matrix based on their maximum value
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 11 Set 2013
Modificato: Azzi Abdelmalek
il 11 Set 2013
Edit2
[ii,ii]=sort(max(A'))
BB=A(ii,:)
1 Commento
Vedere anche
Categorie
Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!