Curve Fitting by MATLAB
Objective: Objective:- Write code to fit a linear and cubic polynomial for the Cp data. How to make a curve fit perfectly? How to get the best fit? What could be done to improve the cubic fit? Coding:- clear all close all clc % Preparing data cp_data = load('data'); temperature = cp_data(:,1); cp = cp_data(:,2); % Curve…