且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MATLAB中使用FFT的频率响应

更新时间:2023-02-27 09:27:43

乍一看似乎还可以,但您可能会缺少以下几点:

Looks OK at first glance, but a couple of things you're missing:

  • 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