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 394. Convert String to Morse Code

Created by NeoGenesis

Convert a given string to international Morse Code

  • Strings will only have [A-z], [0-9] and space characters
  • A string must be returned with dots (.), dashes (-) and spaces between words

For example: given str = 'MATLAB is good' return ystr = '--.--.-...--... ..... --.-------..'


Problem Group

Solution Statistics

76 correct solutions 75 incorrect solutions
Last solution submitted on Sep 26, 2015