[Matlab] 短時傅里葉變換spectrogram函數


Matlab 文檔:https://ww2.mathworks.cn/help/signal/ref/spectrogram.html#bultmx7-x

調用:[~,f,t,ps] = spectrogram(data,opt.window,opt.noverlap,freqRange(1):freqRange(2),sample_freq,'reassigned');

有兩個細節:reassigned 解釋如下:

[___] = spectrogram(___,'reassigned') reassigns each PSD or power spectrum estimate to the location of its center of energy. If your signal contains well-localized temporal or spectral components, then this option generates a sharper spectrogram.

示例:

openExample('signal/ReassignedSpectrogramOfQuadraticChirpExample')

這是我自己花了兩張對比圖,效果如下:

圖1 無reassign選項

 

 圖2 有reassign選項

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM