Mercurial > hg > octave-lyh
comparison scripts/polynomial/polyfit.m @ 14401:2bce551c85b6
doc: Correct typo in polyfit docstring.
* polyfit.m: Correct typo in docstring.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 23 Feb 2012 21:23:49 -0800 |
parents | c87f927d047d |
children | cd375519eab0 |
comparison
equal
deleted
inserted
replaced
14400:9bb633cbdb96 | 14401:2bce551c85b6 |
---|---|
21 ## @deftypefnx {Function File} {[@var{p}, @var{s}] =} polyfit (@var{x}, @var{y}, @var{n}) | 21 ## @deftypefnx {Function File} {[@var{p}, @var{s}] =} polyfit (@var{x}, @var{y}, @var{n}) |
22 ## @deftypefnx {Function File} {[@var{p}, @var{s}, @var{mu}] =} polyfit (@var{x}, @var{y}, @var{n}) | 22 ## @deftypefnx {Function File} {[@var{p}, @var{s}, @var{mu}] =} polyfit (@var{x}, @var{y}, @var{n}) |
23 ## Return the coefficients of a polynomial @var{p}(@var{x}) of degree | 23 ## Return the coefficients of a polynomial @var{p}(@var{x}) of degree |
24 ## @var{n} that minimizes the least-squares-error of the fit to the points | 24 ## @var{n} that minimizes the least-squares-error of the fit to the points |
25 ## @code{[@var{x}, @var{y}]}. If @var{n} is a logical vector, it is used | 25 ## @code{[@var{x}, @var{y}]}. If @var{n} is a logical vector, it is used |
26 ## as a mask to selectivelly force the corresponding polynomial | 26 ## as a mask to selectively force the corresponding polynomial |
27 ## coefficients to be used or ignored. | 27 ## coefficients to be used or ignored. |
28 ## | 28 ## |
29 ## The polynomial coefficients are returned in a row vector. | 29 ## The polynomial coefficients are returned in a row vector. |
30 ## | 30 ## |
31 ## The optional output @var{s} is a structure containing the following fields: | 31 ## The optional output @var{s} is a structure containing the following fields: |