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
-
Select every other element of a vector
36912 Solvers
-
6989 Solvers
-
Return unique values without sorting
1019 Solvers
-
722 Solvers
-
Find remainder when x is divided by 3
167 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!