curve fitting
Objective: clear all close all clc %Loading the data cp_data=load(\'data\'); % file name is data temp=cp_data(:,1); %reading entire first column cp=cp_data(:,2); %Curve fitting coeffs=polyfit(temp,cp,1); % use 1 for linear and 3 for cubic equations pred_cp=polyval(coeffs,temp); %predicted cp using the coeffs found out above %plotting…