PERFORMING CURVE FITTING
Objective: %Curve Fitting clear all close all clc cp_data=load('data'); temp=cp_data(:,1); cp=cp_data(:,2); plot(temp, cp, 'color','g','linewidth',3) hold on grid on xlabel('Temperature(K)') title('Cubic fit') [coeff,s,mu] = polyfit(temp,cp,1); pred_cp = polyval(coeff,temp,s,mu); plot(temp,pred_cp,'color','r','linewidth',3) sum_cp=0;…