The resolution on the spectrogram plot is WAY too low

So, Im trying to plot the spectrogram for a time series sampled at 24KHz, but I am interested in the 3-300 Hz range. However, when I run the code below, it returns this plot
spectrogram(datVec,fs,[],[0,300],fs)
%fs being my sampling frequency, datVec being my time series
Capture.PNG
This frequency resolution is obviously quite low and I am not sure what to do about this. Changing the overlap window has not helped.

 채택된 답변

Star Strider
Star Strider 2019년 8월 1일
Experiment with more elements to your frequency vector, for example:
spectrogram(datVec,fs,[],[3:3:300],fs)
I’m not certain that will do what you want, however it’s always best to experiment.

댓글 수: 2

Ah! Such a simple fix. Thanks so much!
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 8월 1일

댓글:

2019년 8월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by