更新时间:2023-02-27 09:27:43
乍一看似乎还可以,但您可能会缺少以下几点:
Looks OK at first glance, but a couple of things you're missing:
您应在FFT之前将窗函数应用于时域数据,请参见例如 http://en.wikipedia.org/wiki/Window_function 用于常规窗口和 http://en.wikipedia.org/wiki/Hann_window 以获得最常用的窗口功能(Hann aka Hanning ).
you should apply a window function to the time domain data before the FFT, see e.g. http://en.wikipedia.org/wiki/Window_function for windowing in general and http://en.wikipedia.org/wiki/Hann_window for the most commonly used window function (Hann aka Hanning).
您可能想绘制以dB为单位的对数幅度,而不仅仅是原始幅度
you probably want to plot log magnitude in dB rather than just raw magnitude