Curve Fitting
Objective: close allclear allclc %preparing the datacp_data = load (\'data\')temp = cp_data(:,1);specific_heat = cp_data(:,2); %curve fitting%with 2 polynomials we get the linear equation a*t^2+b*t+c co_effs = polyfit(temp , specific_heat,2);predicted_cp = polyval(co_effs,temp); %plotting and comparing predicted and original Cpplot…