Problem 47573. Crea un vector de enteros repitiendo sus términos de la siguiente forma 122333444455555
Crea una función que cree vectores repitiendo cada uno de sus términos su valor hasta un número n.
Es decir, si n = 3 x = [1,2,2,3,3,3]. Si n = 5 x = [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5].
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers54
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3030 Solvers
-
All your base are belong to us
559 Solvers
-
Longest run of consecutive numbers
6161 Solvers
-
306 Solvers
-
160 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!