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 日

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 件のコメント

Hunter Hakimian
Hunter Hakimian 2019 年 8 月 1 日
Ah! Such a simple fix. Thanks so much!
Star Strider
Star Strider 2019 年 8 月 1 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with Signal Processing Toolbox についてさらに検索

製品

リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by