Problem 46108. Sort in descending order.

Solution 3296473

Submitted on 20 Oct 2020 by Alex
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [-3 1 8 2]; y_correct = [8 2 1 -3]; assert(isequal(sort_descending(x),y_correct))

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!