Morse Code Decoding from its spectrum
조회 수: 19 (최근 30일)
이전 댓글 표시
I have a Morse code signal separated from a bunch of other audio sources by Blind source separation. Now I have the frequency domain signal. Could someone suggest how to decode the Morse code from its spectrum or suggest some means by which I could obtain a time-domain representation of the same from which I may manually decode the Morse code?
n = 1000;
wn = [980 1020]/(fs/2);
[b,a] = fir1(n,wn,'bandpass')
% fvtool(b,a);
f = filtfilt(b,a,y);
afil = fft(f);
% subplot(4,1,1); plot(real(bfil)); title('Frequency Response of Input Signal');
% subplot(4,1,2); plot(real(afil)); title('Frequency Response of Filtered Signal');
% subplot(4,1,3); plot(y); title('Original Sound Signal');
% subplot(4,1,4); plot(f); title('Filtered Sound Signal');
댓글 수: 1
Daniel kiracofe
2016년 11월 13일
Would not suggest trying to decode morse code by looking at it's spectrum (i.e. a single FFT). Is it physically possible? Maybe, but it will be insanely hard. Just use the time domain signal. Note, you might have some luck using a short-time fourier transform (i.e. spectrogram or related methods), but a single fft of the whole signal is not the right approach.
"some means by which I could obtain a time-domain representation of the same"
If I understand correctly, here you are just asking how to get the time domain representation of the variable 'afil'? You already have that. it's just the variable 'f'. That's what you should focus on to decode the morse code. Or maybe I misunderstood what you are asking.
채택된 답변
Arnav Mendiratta
2016년 11월 17일
Daniel's answer sums it up. Using Short Time Fourier Transform makes much more sense as Daniel mentioned in his answer. If you want to learn about the algorithmic implementation of this particular use-case, this link has some good information.
If you want some reference code this file exchange submission from the community is available which converts the WAV file containing the Morse code to text.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!