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 1694. Now 20% off!

Created by James

Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of September, this Cody problem requires a string for an input. The output will be the same string, but with every fifth letter in the string replaced with 'X'. Numbers, spaces, and punctuation marks are unaffected, which is more than we can say for the government workers.

For example, 'abcde?fgh123ij' would be replaced with 'abcdX?fgh123iX' Good luck!

Problem Group

Solution Statistics

39 correct solutions 24 incorrect solutions
Last solution submitted on Nov 04, 2015

Problem Comments