Matlab Code 3 Write Function Mydsort Sorts Vector Descending Order Using Loop Built Sort F Q37286375

*MATLAB CODE*

3)Write a function ‘mydsort’ that sorts a vector in descendingorder (using a loop, not the built-in sort function).

4)write a function that will receive a vector and will returntwo index vectors: one for ascending order and one for descendingorder. Check the function by writing a script that will call thefunction and then use the index vectors to print the originalvector in ascending and descending order.

**Please make sure they work. I have found other examples ofthese however none of them are working properly. I will rate if theprogram runs properly.


Answer


`Hey,

Note: Brother in case of any queries, just comment inbox

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.