2.09.2010

POLYFIT :: Fit Coefficients of a Polynomial in the Least Squares Sense

octave octave_polynomial_polyfit

Function: [ P, YF ] = polyfit( X, Y, N )

    N: a polynomial P(X) of degree N

Example:
     octave:> load data.dat
     octave:> data
     octave:> polyfit( data(:,1), data(:,2), 1 )
     
    Fit Coefficients of a Polynomial

See Also ...

octave octave_polynomial_polyfit