Problem 760. Duplicate each element of a vector.
63.78% Correct | 36.22% Incorrect
Last Solution submitted on Mar 03, 2023
Rona on 7 Jul 2013
This solution only works for vectors that are already sorted from low to high :) but it passed the test suite
Duane Hanselman on 31 Dec 2012
This works in R2012b, but not on cody
function ans = duplicate(x)
Problem Recent Solvers577
Back to basics 11 - Max Integer
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!