Matlab code to plot Otto cycle
Objective: Engine Kinematics function for obtaining values of volume change at any instant( at given rotation angle)_ function [v] = vol_trace (bore,stroke, conn_rod,r,crank_i,crank_f) a = stroke/2; R = conn_rod /a ; Vs = pi/4 * bore^2 * stroke ; Vc = Vs/(r - 1);theta = linspace(crank_i,crank_f,360); term1 = 0.5* (r - 1);term2 =…