Curve fitting
Objective: Code to fit a linear and cubic polynomial curve for the given Cp data. In order to obtain the curve fit i have used polyfit(x,y,r) and polyval(a,b) commands ,in the above commands \'r\'- degree of the polynomial. In the code below i have used polyfit command three times with r=1,2&3 …