Curve Fitting of temperature and specific heat variation
Objective: %curve fitting of temperature vs specific heat clear all close all clc %load the data which contains variation of specific heat with temperature temp_cp=load(\'data\'); temperature=temp_cp(:,1); cp=temp_cp(:,2); %%curve fit %%cp=a*t^2+b*t+c coeff=polyfit(temperature,cp,2); predicted_cp=polyval(coeff,temperature); %plotting…