Code to perform Curve Fitting
Objective: %Code to perform curve fitting for the cp vs temp data file clear all close all clc %Loading Data cp_data = load(\'data\'); temp = cp_data(:,1); %Allocating data to temp cp = cp_data(:,2); %Allocating data to cp %cp = a*T+b Linear Polynomial co_eff1 = polyfit(temp,cp,1); predicted_cp1 = polyval(co_eff1,temp); %cp = a*T^2…