Arranging values from highest to lowest using sort function Matlab

Since the sort function sorts the array from the lowest to highest how would I be able to sort an array from the highest to lowest? SO I want to get the inverse of the sort function how is that doable?
a = [6,3,4,11];
sort_a = sort(a);

 採用された回答

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

質問済み:

2021 年 12 月 3 日

回答済み:

2021 年 12 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by