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!