Rank matrix elements in descending order

5 ビュー (過去 30 日間)
Fred John
Fred John 2015 年 1 月 27 日
編集済み: Image Analyst 2015 年 1 月 27 日
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!

採用された回答

Image Analyst
Image Analyst 2015 年 1 月 27 日
編集済み: Image Analyst 2015 年 1 月 27 日
Why not just use the sort() function?
m=magic(5);
% Sort columns in descending order.
sorted_m = sort(m, 'descend')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by