Otto cycle using MATLAB
Objective: The aim of this program is to plot a P-V diagram for an otto cylce with given state parameter and engine design parameters and to find the efficiency of this cycle. The equations used in this program are: `(PV)/T=CONSTANT` `PV^(gamma)=CONSTANT` `V=Vc*(1+1/2*(cr-1)*[R+1-costheta-(R^2-(sintheta)^2)^(1/2)])` `Vs=(pi)/4*(BORE)^2*stroke`…