Convert String to Morse Code - MATLAB Cody - MATLAB Central

Problem 394. Convert String to Morse Code

Difficulty:Rate

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

53.22% Correct | 46.78% Incorrect
Last Solution submitted on Apr 03, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers210

Suggested Problems

Community Treasure Hunt

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

Start Hunting!
Go to top of page