Curve fitting
Objective: %Curve Fitclear allclose allclc%Date file in local disk data = load (\'data\');temp = data (:,1);cp = data (:,2); %Linear Curve fitcoeff = polyfit (temp,cp,1);pred_cp = polyval (coeff,temp); %Plots and Figures 1figure (1)plot (temp,cp,\'color\',\'r\')hold onplot (temp,pred_cp,\'color\',\'b\')xlabel (\'Temperature(K)\')ylabel…