Cody

Problem 46108. Sort in descending order.

Solution 3298633

Submitted on 20 Oct 2020 by Davide del Giudice
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))

x_sort = 8 2 1 -3

Suggested Problems

Community Treasure Hunt

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

Start Hunting!