Otto Cycle
Objective: %otto cycleclear allclose allclc %state variablep1 = 101325t1 = 500gamma = 1.4;t3 = 2300;cp = 1.44 %engine geometric parametersbore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 12; %calculating thw swept volume and the clearance volumev_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr-1); v1 = v_swept + v_clearance;v2…