## MATLAB: I want to convert the output of transient analysis of cantilever beam from time domain to frequency domain, so i used the fft function as below. But i am not getting the correct answer. Please anyone can help me to solve this problem

`Fs = 100;T = 1/Fs; a = load('C:UsersSiddeshaDesktopMATLABcant_transient3.txt'); y = a(:,3); x = a(:,2); figure(1) plot(x,y)L = length(y); t = linspace (0, L-1, L)*T;figure(2)plot (Fs*t, y)NFFT = 2^nextpow2(Fs);absy = fft(y,NFFT)*L;f = Fs/2*linspace(0,1,NFFT/2+1);figure(3)plot(f,2*abs(absy(1:NFFT/2+1)))`

## Best Answer