High quality spectrogram with a few seconds signal
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
spectrogram(signal,128,64,2048,fs,'yaxis')
I do not get the quality I need. Is there something I could do?
댓글 수: 0
답변 (1개)
Rick Rosson
2016년 2월 7일
편집: Rick Rosson
2016년 2월 8일
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:
spectrogram(signal,winSize,overlap,fftSize,fs,'yaxis');
Then try experimenting with the value of dur until the spectrogram provides a good balance between time resolution and frequency resolution.
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!