Rank matrix elements in descending order
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Fred John
il 27 Gen 2015
Modificato: Image Analyst
il 27 Gen 2015
Hi!
I have a matrix from which I want the elements to be moved to a table where the elements are sorted via descending order. Can I do this using the av_output command? Or something else?
Thanks!
0 Commenti
Risposta accettata
Image Analyst
il 27 Gen 2015
Modificato: Image Analyst
il 27 Gen 2015
Why not just use the sort() function?
m=magic(5);
% Sort columns in descending order.
sorted_m = sort(m, 'descend')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!