Morse decoder

Decodes Morse audio signals
131 Downloads
Updated 19 May 2022

View License

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 (2026). 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 Linux
Tags Add Tags
Version Published Release Notes
1.0.0