Morse
This takes a character string and encodes the string into a CW waveform with a specified sampling frequency. The function should be called as "Morse(string,wpm,fs)", string being a string of characters, wpm corresponding to words per minute, and fs representing the sampling frequency.
Credit goes to the following work for generating the original code (reused with permission from author):
[matlab] Morse code decoder, please help me (https://www.mathworks.com/matlabcentral/answers/404470-matlab-morse-code-decoder-please-help-me#answer_323647), MATLAB Answers.
Spacing is derived from:
Lacy, Tony (2007). Morse code structure and timing (http://www.nu-ware.com/NuCode%20Help/index.html?morse_code_structure_and_timing_.htm).
Cite As
William Barnhart (2024). Morse (https://www.mathworks.com/matlabcentral/fileexchange/73280-morse), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.