PV Diagram Otto and Thermal Efficiency
Objective: First, we create the main program i.e otto.m close all clear all clc % Input Variables bore_engine=0.1; stroke_engine=0.1; con_engine=0.15; cratio_engine=12; % Input % gamma is ratio of specific heat used in efficiency formula gamma=1.4; t3=2300 %State Variables p1=101325 t1=500…