Mercurial > octave-nkf
changeset 8072:3b6e7d04b614
doc fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 28 Aug 2008 15:13:33 -0400 |
parents | b6e85fb238c1 |
children | 8468140fd997 |
files | doc/ChangeLog doc/interpreter/func.txi |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog Thu Aug 28 15:08:43 2008 -0400 +++ b/doc/ChangeLog Thu Aug 28 15:13:33 2008 -0400 @@ -1,7 +1,7 @@ 2008-08-28 John W. Eaton <jwe@octave.org> - * interpreter/plot.txi: Doc fixes suggested by Francesco Potorti` - <Potorti@isti.cnr.it>. + * doc/interpreter/func.txi, interpreter/plot.txi: Doc fixes + suggested by Francesco Potorti` <Potorti@isti.cnr.it>. 2008-08-28 David Bateman <dbateman@free.fr>
--- a/doc/interpreter/func.txi Thu Aug 28 15:08:43 2008 -0400 +++ b/doc/interpreter/func.txi Thu Aug 28 15:13:33 2008 -0400 @@ -338,7 +338,8 @@ @node Variable-length Argument Lists @section Variable-length Argument Lists @cindex variable-length argument lists -@cindex @code{...} +@cindex @code{varargin} + Sometimes the number of input arguments is not known when the function is defined. As an example think of a function that returns the smallest of all its input arguments. For example, @@ -421,6 +422,8 @@ @node Variable-length Return Lists @section Variable-length Return Lists @cindex variable-length return lists +@cindex @code{varargout} + It is possible to return a variable number of output arguments from a function using a syntax that's similar to the one used with the special @code{varargin} parameter name. To let a function return a