fft,displacement, frequency

1 次查看(过去 30 天)
Gloria
Gloria 2020-6-13
Hi; I can see the maximum displacement with Figure 1 which is Displacement-time grapf.
When I apply fft I can see the correct frequency but maximum displacement doesn't match with displacement .
I guess I made mistake when I applied FFT. Can you check and help?
t=0:0.01:10;
t_step=0.01;
ts=1/t_step;
x=sin(1.66*t);
figure(1);
plot(t,x);
x =x' .*hann(length(x))*2;
N1=2^nextpow2(length(x));
freq1=(0:1:(N1-1)/2)*ts/N1;
fx1=fft(x,N1)/N1*2;
ffx1=abs(fx1(1:floor(N1/2)));
figure(2);
plot(freq1,ffx1);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vibration Analysis 的更多信息

产品


版本

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by