Project

Curve fitting using linear and cubic polynomial functions

Objective: %%Linear Polynomial clear all;close all;clc;cp_data=load(\'data\');temp=cp_data(:,1);cp=cp_data(:,2); coeff=polyfit(temp,cp,1);predicted_cp=polyval(coeff,temp); %%Plots plot(temp,cp,\'.\',\'linewidth\',1);hold on;plot(temp,predicted_cp);xlabel(\'Temp[k]\')ylabel(\'Sp heat[KJ/K-mol-k]\')legend(\'Actual data\',\'Predicted…

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.