curve fit
Objective: close all; clear all; clc %curve fitting program and to calculate error %preparing datacp_data = load(\'data\');temperature = cp_data(:,1);cp = cp_data(:,2); plot(temperature,cp,\'linewidth\',1,\'color\',\'b\'); hold on;%linear fitlinear = polyfit(temperature,cp,1);y_linear = polyval(linear,temperature);plot(temperature,y_linear,\'linewidth\',1,\'color\',\'r\');E1…