Curve fitting
Objective: clear allclose allclc cp_data = load(\'data1\');temperature = cp_data(:,1);cp = cp_data(:,2); co_effs_lin = polyfit(temperature,cp,1);co_effs_cub = polyfit(temperature,cp,3); predicted_cp_lin = polyval(co_effs_lin, temperature);predicted_cp_cub = polyval(co_effs_cub, temperature); figure(1)plot(temperature,cp,\'linewidth\',3,\'color\',\'b\')hold…