MATLAB code to solve Ottocycle,generate a P-V plot and caluclate thermal efficiency.
Objective: Objective - To write a code that can solve a Otto cycle , generate P -V plot and caluclate thermal efficiency of engine. Software used- Matlab. Description- Process 1-2 - Isentropic compression P*V^gamma= constant.…