Otto cycle
Objective: MATLAB SCRIPT close all clear all clc %% Input Values gamma=1.4; t3=2800; t1=800; p1=101325; bore=0.1; stroke=0.1; cr=13; con_rod=0.15; v_s=(pi/4)*bore^2*stroke; v_c=v_s/(cr-1); %% Find out the values of t2,t4,p2,p3,p4,v1,v2 v1=v_s+v_c; v2=v_c; v3=v2; v4=v1; p2=p1*cr^gamma; t2=p2*v2*t1/(p1*v1); p3=p2*t3/t2; p4=p2*(v3/v4)^gamma;…