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
487 Solvers
272 Solvers
Create a cell array out of a struct
511 Solvers
Back to basics 22 - Rotate a matrix
764 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3659 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!