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选项

 

版权声明:本文为virter原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/virter/p/14130408.html