Plotting P-V diagram and calculating thermal efficiency of an otto cycle using MATLAB
Objective: AIM: Write a MATLAB code to plot a PV diagram for otto cycle and calculate its thermal efficiency. GOVERNING EUQATIONS: Ideal gas equation:`P*V=m*R*T` P = Pressure in pascals V = Volume in m^3 m = mass of the gas…