Info
This question is closed. Reopen it to edit or answer.
Help with this question
3 views (last 30 days)
Show older comments
Swapping and Sorting Write a function to sort the elements in an array. The function takes two inputs, the array to be sorted and the order of sorting (ascending or descending). The output will be the vector sorted in the requested order. Note: Do not use in-built functions such as sort.You are expected to write your own logic.
Thank you :D
1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!