otto cycle and efficiency
Objective: %otto_cycle_and_efficiency close all clear all clc % inputs gamma=1.4 t3=2300 %state variabels p1=101325 t1=500 %engine parameters bore=0.1; stroke=0.1; cr=12; con_rod=0.15; %calculating the swept volume and clearencce volume v_swept=(pi/4)*bore^2*stroke; v_clearence = v_swept/(cr-1); v1= v_swept + v_clearence v2= v_clearence…