CURVE FITTING
Objective: clear allclose allclc %Preparing the data cp_data=load(\'data\');temperature=cp_data(:,1);cp=cp_data(:,2); %Curve fit %cp=a*T^2+b*T+c co_effs=polyfit(temperature,cp,2);predicted_cp=polyval(co_effs,temperature); %Compare my curve fit with the original data plot(temperature,cp,\'linewidth\',3)hold onplot(temperature,predicted_cp,\'linewidth\',3,\'color\',\'r\')xlabel(\'Temperature[K]\')ylabel(\'Specific…