How to sort a vector without using the sort command
Mostrar comentarios más antiguos
I can only use input, length, disp, while loops and if-else
2 comentarios
James Tursa
el 8 de Dic. de 2015
What have you done so far? What sorting algorithm are you supposed to use?
Rayan Hussaini
el 8 de Dic. de 2015
Editada: Rayan Hussaini
el 8 de Dic. de 2015
Respuestas (1)
Walter Roberson
el 8 de Dic. de 2015
0 votos
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.
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!