High quality spectrogram with a few seconds signal
8 visualizzazioni (ultimi 30 giorni)
I am trying to get a high quality spectrogram with a signal that is only 5 seconds long. This is the line I am using: the sampling frequency is 1000Hz.
I do not get the quality I need. Is there something I could do?
Rick Rosson il 7 Feb 2016
Modificato: Rick Rosson il 8 Feb 2016
Please try the following:
% Window duration (in seconds):
dur = 0.5;
% Spectrogram settings (in samples):
winSize = round(fs*dur);
overlap = round(winSize/2);
fftSize = winSize;
% Plot the spectrogram:
Then try experimenting with the value of dur until the spectrogram provides a good balance between time resolution and frequency resolution.