Plotting PV diagram of Otto cycle and determining Thermal efficiency
Objective: %Determining state variables at all the 4 state points and plotting P vs Vclear allclose allclc % InputT3 = 2300; %(in Kelvin)gamma = 1.4; % State variables at State Point 1P1 = 101325; %(in Pascals)T1 = 500; %(in Kelvin) % Engine geometric parametersbore = 0.1; %(bore diameter in meters)stroke = 0.1; %(stroke length in…