Mercurial > octave
diff scripts/polynomial/polyfit.m @ 11917:deb777a926ee release-3-0-x
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 12 Jan 2009 12:13:21 +0100 |
parents | 377d908f7e40 |
children | f2af2233ce7f |
line wrap: on
line diff
--- a/scripts/polynomial/polyfit.m Mon Jan 12 12:09:30 2009 +0100 +++ b/scripts/polynomial/polyfit.m Mon Jan 12 12:13:21 2009 +0100 @@ -24,20 +24,19 @@ ## ## The polynomial coefficients are returned in a row vector. ## -## The second output is a structured variable, @var{s}, -## containing the following fields: +## The second output is a structure containing the following fields: ## ## @table @samp ## @item R -## Triangular factor R from the QR decomposition. +## Triangular factor R from the QR decomposition. ## @item X -## The Vandermonde matrix used to compute the polynomial coefficients. +## The Vandermonde matrix used to compute the polynomial coefficients. ## @item df -## The degrees of freedom. +## The degrees of freedom. ## @item normr -## The norm of the residuals. +## The norm of the residuals. ## @item yf -## The values of the polynomial for each value of @var{x}. +## The values of the polynomial for each value of @var{x}. ## @end table ## ## The second output may be used by @code{polyval} to calculate the