To fit a given set of data points to a polynomial.
A=npolyfit(x,y,n)
an array of x axis points
an array of y axis points
the order of polynomial
an array that contains the coefficients of the polynomial, such that the first element contains the coefficient of x^0 and the last element contains the coefficient of x^n
Fits the given set of points to a Polynomial.
Returns the coefficients of the polynomial.