AIR STANDARD CYCLE
Objective: A code that can solve an otto cycle and creating a PV diagram %Otto cycle using matlabclear allclose allclc % Inputsgamma = 1.4t3 = 2300 % State variablesp1 = 101325t1 = 500 % Engine geometric parametersbore = 0.1;stroke = 0.1;conn_rod = 0.15;cr = 12; % Calculating swept volume and clearance volumev_swept = (pi/4)*bore^2*stroke;v_clearance…