Plotting of actual P-V diagram of an Otto cycle and calculating its thermal efficiency
Objective: % 1.Create a PV diagram of an Otto cycle % 2.Thermal efficiency of the engine as an output close all clear all clc % inputs 1. gamma =1.4 2. Temperature= t3 in K(maximum temparature reached in the cycle) gamma= 1.4; t3= 2300; % state varibles 1. pressure in n/m^2 2. temperature in K 3. volume in m^3 p1= 101325; t1= 500;…