Problem 42486. Repeat string n times - 3
function myOutput = rep_str_3(string1, string2, num1, num2, n)
function desiredOutput = rep_str_3('string1', 'STRING2', 0, 10, 2)
desiredOutput= {
'string1_0'
'STRING2_10'
'string1_1'
'STRING2_11'}
Related challenges : Repeat string n times and Repeat string n times -2
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers24
Suggested Problems
-
Program an exclusive OR operation with logical operators
749 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1301 Solvers
-
Simple equation: Annual salary
4251 Solvers
-
Back to basics - mean of corner elements of a matrix
454 Solvers
-
Sum the real and imaginary parts of a complex number
143 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!