just need an expert approach to thus problem to compare with mine Write a MATLAB user-defined function y = MySort(x,Type): x is a vector containing numbers, and Type can be ‘Ascending’ or...


just need an expert approach to thus problem to compare with mine




  1. Write a MATLAB user-defined function y = MySort(x,Type): x is a vector containing numbers, and Type can be ‘Ascending’ or ‘Descending’. This function should sort the given vector x in the ascending or descending order based on the user’s request and return the desired vector as the output. Do not use MATLAB built-in function sort. Hint: When you call this function, you need to use ‘’ for Ascending or Descending since they are strings.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here