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 Solvers50
Suggested Problems
-
Return the largest number that is adjacent to a zero
5514 Solvers
-
Getting the row and column location from a matrix
297 Solvers
-
575 Solvers
-
Cumulative product of a vector
299 Solvers
-
897 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!