e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers52
Suggested Problems
-
512 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1270 Solvers
-
135 Solvers
-
Find the index of n in magic(n)
273 Solvers
-
Pad zero between every adjacent values of the vector.
57 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!