Curve Fitting
Objective: Linear Curve Fit: clear all close all clc %data cp_data = load(\'data\'); temperature = cp_data(:,1); cp = cp_data(:,2); %Curve fit co_eff = polyfit(temperature,cp,1); predicted_val = polyval(co_eff,temperature); %error function(to show how good are curve fit is) err = (1/length(cp))*sum((predicted_val - cp).^2) %plotting…