Curve fitting of specific heat data
Objective: clear all close all clc %preparing the data cp_data = load(\'data.txt\'); temperature = cp_data(:,1); cp = cp_data(:,2); %Curve fit for linear equation co_effs1 = polyfit(temperature,cp,1); predicted_cp1 = polyval(co_effs1,temperature); %Curve fit for cubic equation co_effs3 = polyfit(temperature,cp,3); predicted_cp3 =…