Curve fitting to Raw Data
Objective: The malab code to fit a) linear fit, b) cubic fit is published as below: clear all close all clc %Input data and organize for fitting cp_data = load('data'); temperature = cp_data(:,1); cp = cp_data(:,2); %Input polyfit command to fit curves to data for a linear fit fit1 = polyfit(temperature,cp,1); y1 = polyval(fit1,temperature);…