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!