Repeat string n times - MATLAB Cody - MATLAB Central

Problem 42482. Repeat string n times

Difficulty:Rate
  • You will be provided a string (s = 'string1_')
  • a starting point (num1 = 6) (always bigger than or equal to zero)
  • and n (n = 3) (always bigger than or equal to 1)
You will return following in sequence;
{'string1_6'
'string1_7'
'string1_8'}
You can not use for or while loops

Solution Stats

32.32% Correct | 67.68% Incorrect
Last Solution submitted on Jul 31, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
2

Problem Recent Solvers44

Suggested Problems

More from this Author92

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!