Curve fitting and its analysis
Objective: Curve Fitting Linear polynomial for cp data(n=1) close all clear all clc %loading data file cp_data=load(\'data\'); temperature=cp_data(:,1); cp=cp_data(:,2); %curve fit %cp=a*t^2+c co_effs=polyfit(temperature,cp,1); predicted_cp=polyval(co_effs,temperature); %ploting plot(temperature,cp,\'linewidth\',3) hold on plot(temperature,predicted_cp,\'linewidth\',3,\'color\',\'r\')…