I have prepared Matlab code (FFT and PSD) for frequency domain analysis of Quarter car passive suspension (Simulink Model Attached). The two Natural Frequencies of this 2DOF model are 3 Hz and 20 Hz.
The time-domain Acceleration vs Time data is in X.xlsx file, whereas Displacement vs Time data is in D.xlsx file. The respective Matlab files for FFT are 'accelfft.m' and 'dissfft.m'.
They seem to work, but I am not sure whether they are giving the right result or not. Also for displacement FFT gives a peak at 0 Hz, how to remove it?
Are these FFT nd PSD codes giving the right output? How can I find peak values and corresponding frequency by Matlab command?
Simulink Model, Matlab Code files are attached.