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 = '--.--.-...--... ..... --.-------..'

Solution Stats

489 Solutions

217 Solvers

Last Solution submitted on Jan 28, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers217

Suggested Problems

Community Treasure Hunt

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

Start Hunting!