In this repository, I have simulated an ideal diesel engine using MATLAB in order to find out its thermal efficiency, Mean Effective Pressure, Design CC and Compression Ratio.