Curve fitting
Objective: Q1>Write code to fit a linear and cubic polynomial for the Cp data. Explain if your results are good or bad. The code to fit a linear polynomial for the given cp data is given below, clear all close all clc %preparing the data cp_data = load ('data') temperature = cp_data(:,1); specific_heat = cp_data(:,2); %curve…