Which type of windowing or filtering to apply for obtaining the right shape of FRF?

1 view (last 30 days)
Hi! I have calculated and plotted the point FRF. As an excitation I have used a half-sin force.Should I consider to use windowing prior fft, because I just have one peak on the plot? All comments are welcome.
Thanks!
%Number of samples N = length(acc);
%Sampling frequency in Hertz fs = N/T;
% FFT of acceleration
NFFT = 2^nextpow2(N); ACC = fft(acc(11,:),NFFT)/N; ACC_abs = 2*abs(ACC(1:NFFT/2+1));
f1 = fs/2*linspace(0,1,NFFT/2+1);
% FFT of force vector
PSIN = fft(Psin(11,:),NFFT)/N; PSIN_abs = 2*abs(PSIN(1:NFFT/2+1));
f2 = fs/2*linspace(0,1,NFFT/2+1);
% Plotting force and acceleration in frequency domain figure
subplot (1,2,1); grid on; plot(f1,ACC_abs) xlabel('Frequency (Hz)') ylabel('ACC(f)')
subplot (1,2,2); grid on; plot(f2,PSIN_abs) xlabel('Frequency (Hz)') ylabel('PSIN(f)')
% Calculating point FRF FRF66 = ACC_abs./PSIN_abs;
% FRF in decibels FRF66db = 10*log10(FRF66);
% Plotting point FRF figure semilogx(fs/2*linspace(0,1,NFFT/2+1),FRF66db)
grid on title ('FRF 66') xlabel('Frequency (log)') ylabel('Amplitude (dB)')

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!