Mercurial > hg > octave-lyh
diff scripts/polynomial/polyfit.m @ 2312:204cc7db6f4a
[project @ 1996-07-11 21:20:36 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 21:20:36 +0000 |
parents | 2b5788792cad |
children | 5ca126254d15 |
line wrap: on
line diff
--- a/scripts/polynomial/polyfit.m +++ b/scripts/polynomial/polyfit.m @@ -23,11 +23,13 @@ ## minimizes sumsq (p(x(i)) - y(i)), i.e., that best fits the data ## in the least squares sense. +## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> +## Created: 13 December 1994 +## Adapted-By: jwe + function p = polyfit (x, y, n) - ## Written by KH (Kurt.Hornik@ci.tuwien.ac.at) on Dec 13, 1994 - ## Copyright Dept of Statistics and Probability Theory TU Wien - + if (nargin != 3) usage ("polyfit (x, y, n)"); endif