CURVE FIT
Objective: clear allclose all clc % preparing data cpdata=load(\'data\'); temp=cpdata(:,1); cp=cpdata(:,2); % curve fit %cp=a*t+c coeffs=polyfit(temp,cp,1); predictedcp=polyval(coeffs,temp); %compare curve fit with original data plot(temp,cp,\'linewidth\',3); hold on plot(temp,predictedcp,\'linewidth\',3,\'color\',\'r\'); xlabel(\'temp…