CURVE FITTING LINEAR AND CUBIC POLYNOMIAL
Objective: 1) a)fitting a linear polynomial %fitting a linear polynomial clear all close all clc %preparaing the data cp_data=load(\'datanew\'); temperature=cp_data(:,1); cp= cp_data(:,2); %curve fit coeff=polyfit(temperature,cp,1) pred_cp=polyval(coeff,temperature); % comparing curve fit with original data plot(temperature,cp,\'linewidth\',3,\'color\',\'r\');…