Problem 46108. Sort in descending order.

Solution 2793466

Submitted on 5 Aug 2020 by Philip Butcher
  • Size: 11
  • This is the leading solution.
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!