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 )
See Also ...
- R :: LSFIT ... Find the Least Squares Fit
- R :: NLS ... Nonlinear Least Squares