How to sort a vector without using the sort command
古いコメントを表示
I can only use input, length, disp, while loops and if-else
2 件のコメント
James Tursa
2015 年 12 月 8 日
What have you done so far? What sorting algorithm are you supposed to use?
Rayan Hussaini
2015 年 12 月 8 日
編集済み: Rayan Hussaini
2015 年 12 月 8 日
回答 (1 件)
Walter Roberson
2015 年 12 月 8 日
0 投票
The task is not possible under those conditions. In order to sort, you would need to also be able to use indexing, and comparison operators, and (depending how the question was worded) possibly assignment as well.
カテゴリ
ヘルプ センター および 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!