sorting array without min and max
17 ビュー (過去 30 日間)
古いコメントを表示
hi just wondering how i can sort a given matrix A = [3 4 2 5 1] from highest to lowest without using the matlab min and max function
1 件のコメント
Adam Danz
2019 年 11 月 23 日
編集済み: Adam Danz
2019 年 11 月 23 日
Hint: there's a matlab function that does exactly that and the function's name is one of the first 10 words in your question. You'll have to tell this function to use 'descend' order which is explained on this function's documentation page.
回答 (1 件)
the cyclist
2019 年 11 月 23 日
編集済み: the cyclist
2019 年 11 月 23 日
Take your pick: Sorting algorithms
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!