MATLAB: How to convert engine cylinder pressure data (bar) to frequency (Hz) using FFT or STFT

fftstft

I need to convert incylinder pressure data (bars) to frequnecy (Hz) using time-frequency analysis. The pressure is obtained from 0-720 crank angle degrees.

Best Answer

Save the pressure values (calculated or measured) as a vector, with a vector of the matching sampling times. (A higher sampling frequency is better.) Calculate the sampling frequency from the sampling times, the Nyquist frequency from the sampling frequency, then see the documentation for the fft (link) function to calculate and plot the fft.