improve test suit
This solution only works for vectors that are already sorted from low to high :) but it passed the test suite
This works in R2012b, but not on cody
function ans = duplicate(x)
[x;x];
x(:)';
end
Make the vector [1 2 3 4 5 6 7 8 9 10]
35547 Solvers
1261 Solvers
Get the area codes from a list of phone numbers
532 Solvers
536 Solvers
17120 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!