This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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))
|
Reverse the elements of an array
687 Solvers
992 Solvers
Finding an element in a vector
136 Solvers
67 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!