Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1461. Duplicate a character

Duplicate a character 'n' times.

Example 1: str='a' n=5


Example 2: str='*' n=3


Problem Group

Solution Statistics

73 correct solutions 114 incorrect solutions
Last solution submitted on Oct 04, 2015

Problem Comments