I am not that good in explaining things. Hope this helps.
Let x and f be the time histories of response and force respectively, and dt the sampling time step.
Note that FFT results in a 2-fold FRF, that is, you should consider only the first half of the data obtained (this corresponds to the Nyquist frequency = (1/dt)/2).
I am not that good in explaining things. Hope this helps.
Let x and f be the time histories of response and force respectively, and dt the sampling time step.
Note that FFT results in a 2-fold FRF, that is, you should consider only the first half of the data obtained (this corresponds to the Nyquist frequency = (1/dt)/2).
The code from Sundar works when the excitation is harmonic. If it is not harmonic (for example, it contatins more than one harmonic or even is a general function of time), the ratio of FFT of response to FFT of excitation is not its FRF.