Curvefitting
Objective: close allclear allclc plc=load(\'data\');cp=plc(:,1);temp=plc(:,2);%curvefit cp1=polyfit(temp,cp,2);pred_cp=polyval(cp1, temp); %plotinng the original curve with fitted curve and comparing them plot(temp,cp,\'linewidth\',3)hold onplot(temp,pred_cp,\'linewidth\',3)ylabel(\'specific heat \')xlabel(\'temperature\')legend(\'curve…