Morse International Code

Morse International Code translation and audio output
39 téléchargements
Mise à jour 20 juin 2023

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.

International Morse Code

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. View Morse International Code on File Exchange

Author

François Beauducel, IPGP, beaudu, beauducel@ipgp.fr

Citation pour cette source

François Beauducel (2025). Morse International Code (https://github.com/beaudu/morse/releases/tag/v1.0), GitHub. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2011b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.