Morse International Code
Version 1.0 (14.4 KB) by
François Beauducel
Morse International Code translation and audio output
MORSE: International Morse Code
morse.m
This function written in GNU Octave/Matlab language, translates a text into Morse code, as dot and dash string, binary vector or sound audio file. Giving a Morse code string as input, it translates back to the original text.
Examples:
> morse('SOS')
... --- ...
> s=morse('.-- .... .- - .... .- - .... --. --- -.. .-- .-. --- ..- --. .... - ..--..')
WHAT HATH GOD WROUGHT?
> morse('What Hath God Wrought?','audio')
The last command will play this sound:
morse1844.mp4
which is the very first message sent by inventor Samuel F.B. Morse on May 24, 1844, over an experimental line from Washington, D.C., to Baltimore.
Type doc morse or help morse for syntax and options.
Author
François Beauducel, IPGP, beaudu, beauducel@ipgp.fr
Cite As
François Beauducel (2026). Morse International Code (https://github.com/beaudu/morse/releases/tag/v1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2011b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.

