Curve Fitting
Objective: AIM: To determine the code to fit a linear and cubic polynomial for the Cp data. CODE: clear all close all clc %preparing the data cp_data = load('data'); temperature = cp_data(:,1); cp = cp_data(:,2); %curve fit for 1 degree polynomial %cp = a*t + b co_effs1 = polyfit(temperature,cp,1); predicted_cp1 = polyval(co_effs1,temperature);…