*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