Decodes audio Morse code into text:
% [msg, ToneFreq, ditstat, dahstat] = morseDecode(y, Fs, [ToneFreq])
%
% INPUT
% y - audio signal, [nsmpl, number_of_messages]
% Fs - sampling frequency
% ToneFreq - tone frequency (optional), better be within 30 Hz of the actual one,
% if not set or is empty the actual tone frequency will be estimated
% from the signal, if set to 0, the default 1000 Hz will be used
%
% OUTPUT
% msg - decoded message
% ToneFreq - estimated tone frequency
% ditstat - "dit" interval statistics: [mean, std, min, max]
% dahstat - "dah" interval statistics: [mean, std, min, max]
%
% Based on decode.m from
% https://github.com/drid/morse-audio-decoder
%
% Peter L. Volegov
% Version 1.0.0.0, 05/17/2022
Cite As
Peter Volegov (2023). Morse decoder (https://www.mathworks.com/matlabcentral/fileexchange/111870-morse-decoder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |