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
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
Read a column of numbers and interpolate missing data
1235 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Convert a vector into a number
503 Solvers
359 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!