Problem 42484. Repeat string n times - 2
This is the two variable version of Repeat string n times.
- you will have a string (s = 'str_')
- a starting point (num1 = 4)
- another starting point (num2 = 10)
- a n (n = 4)
output=
{'str_4_10'
'str_5_11'
'str_6_12'
'str_7_13'}
Solution Stats
Problem Comments
-
1 Comment
Christian Schröder
on 28 Oct 2022
Your test suite is overzealous and trips up on arrayfun(..., "UniformOutput", false).
Solution Comments
Show commentsProblem Recent Solvers31
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
51873 Solvers
-
Find relatively common elements in matrix rows
2107 Solvers
-
Make a run-length companion vector
648 Solvers
-
Set the array elements whose value is 13 to 0
1417 Solvers
-
Returning a "greater than" vector
264 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!