Cody

Problem 47588. Sort a vector

Solution 3793188

Submitted on 23 Nov 2020 by Mehmet OZC
  • Size: 14
  • 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 = randi(100,[1,10]); y_correct = sort(x); y = sortVect(x); assert(isequal(y,y_correct))

2   Pass
x = randi(100,[1,50]); y_correct = sort(x); y = sortVect(x); assert(isequal(y,y_correct))

3   Pass
x = randi(100,[1,100]); y_correct = sort(x); y = sortVect(x); assert(isequal(y,y_correct))

4   Pass
assessFunctionAbsence({'sort'}, 'FileName', 'sortVect.m');

Suggested Problems

More from this Author14

Community Treasure Hunt

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

Start Hunting!