Week 4 - Curve fitting
Objective: clear allclose allclc%Step 1: Preparing the datacp_data = load('data');temperature = cp_data(:,1);cp = cp_data(:,2);%Step2: Plotting the Original datafigure(1)plot(temperature,cp, 'linewidth',3,'color','b')xlabel('Temperature[k]')ylabel('Specific Heat[KJ/Kmol-K]')grid on%Step3: Curve Fitting%Linear Fit%cp = a*t+bco_effs_linear…