P-V diagram of otto cycle and thermal efficiency
Objective: ####comments##### you havent attached function file % pv diagram of otto cycle clear allclose allclc % inputs gamma = 1.4t3 = 3000 % state variables p1 = 101325t1 = 500 % engine geometric prameters bore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 15; % calculating the swept volume and the clearance…