Curve Fitting
Objective: 1. Code to fit linear and cubic polynomial clear all close all clc %preparing the data cp_data=load(\'data\'); temperature=cp_data(:,1); cp=cp_data(:,2); %curve fit %cp=a*T^2+b*T+c coefficients1=polyfit(temperature,cp,2); predicted_cp1=polyval(coefficients1,temperature); %compare my curve fit with the original data figure(1)…