Curve fitting of linear and cubic polynomial using the Cp data in MATLAB
Objective: MATLAB code to fit linear and cubic polynomial for the given Cp data is as follows: % Input data cp_data = load('data'); temperature = cp_data(:,1); cp = cp_data(:,2); % Curve fit for linear polynomial co_effs = polyfit(temperature,cp,1); predicted_cp = polyval(co_effs,temperature); % Plotting the curve fit w.r.t reference…