Frequency response using FFT in MATLAB

别来无恙 提交于 2019-12-03 08:48:21

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

You should consider looking at the cpsd() function for calculating the Frequency response. The scaling and normalisation for various window functions is handled for you.

the Frequency reponse would then be

G = cpsd (output,input) / cpsd (input,input)

then take the angle() to obtain the phase difference between the input and the output.

Your code snippet does not mention what the input and output data sets are.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!