# HG changeset patch # User Rik # Date 1295059163 28800 # Node ID 6bac61388876adaaa1f7217647dbf7b044167c30 # Parent 6eded7561d9d066c84c89182d21e865855fdc950 Add undocumented postpad function to documentation. diff -r 6eded7561d9d -r 6bac61388876 doc/ChangeLog --- a/doc/ChangeLog Fri Jan 14 16:58:44 2011 -0800 +++ b/doc/ChangeLog Fri Jan 14 18:39:23 2011 -0800 @@ -1,3 +1,7 @@ +2011-01-14 Rik + + * interpreter/matrix.txi: Add undocumented postpad to documentation. + 2011-01-14 Rik * interpreter/octave.texi, interpreter/poly.txi: Add undocumented diff -r 6eded7561d9d -r 6bac61388876 doc/interpreter/matrix.txi --- a/doc/interpreter/matrix.txi Fri Jan 14 16:58:44 2011 -0800 +++ b/doc/interpreter/matrix.txi Fri Jan 14 18:39:23 2011 -0800 @@ -150,9 +150,10 @@ @DOCSTRING(vech) -@anchor{doc-postpad} @DOCSTRING(prepad) +@DOCSTRING(postpad) + @DOCSTRING(diag) @DOCSTRING(blkdiag) diff -r 6eded7561d9d -r 6bac61388876 scripts/ChangeLog --- a/scripts/ChangeLog Fri Jan 14 16:58:44 2011 -0800 +++ b/scripts/ChangeLog Fri Jan 14 18:39:23 2011 -0800 @@ -1,3 +1,7 @@ +2011-01-14 Rik + + * general/postpad.m, general/prepad.m: Improve docstring. + 2011-01-14 Rik * ploynomial/polyaffine.m: Improve docstring. diff -r 6eded7561d9d -r 6bac61388876 scripts/general/postpad.m --- a/scripts/general/postpad.m Fri Jan 14 16:58:44 2011 -0800 +++ b/scripts/general/postpad.m Fri Jan 14 18:39:23 2011 -0800 @@ -17,9 +17,21 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {} postpad (@var{x}, @var{l}, @var{c}) +## @deftypefn {Function File} {} postpad (@var{x}, @var{l}) +## @deftypefnx {Function File} {} postpad (@var{x}, @var{l}, @var{c}) ## @deftypefnx {Function File} {} postpad (@var{x}, @var{l}, @var{c}, @var{dim}) -## @seealso{prepad, resize} +## Append the scalar value @var{c} to the vector @var{x} +## until it is of length @var{l}. If the third argument is not +## supplied, a value of 0 is used. +## +## If @code{length (@var{x}) > @var{l}}, elements from the end of +## @var{x} are removed until a vector of length @var{l} is obtained. +## +## If @var{x} is a matrix, elements are appended or removed from each row. +## +## If the optional argument @var{dim} is given, operate along this +## dimension. +## @seealso{prepad, cat, resize} ## @end deftypefn ## Author: Tony Richardson diff -r 6eded7561d9d -r 6bac61388876 scripts/general/prepad.m --- a/scripts/general/prepad.m Fri Jan 14 16:58:44 2011 -0800 +++ b/scripts/general/prepad.m Fri Jan 14 18:39:23 2011 -0800 @@ -17,20 +17,21 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {} prepad (@var{x}, @var{l}, @var{c}) +## @deftypefn {Function File} {} prepad (@var{x}, @var{l}) +## @deftypefnx {Function File} {} prepad (@var{x}, @var{l}, @var{c}) ## @deftypefnx {Function File} {} prepad (@var{x}, @var{l}, @var{c}, @var{dim}) -## Prepend (append) the scalar value @var{c} to the vector @var{x} +## Prepend the scalar value @var{c} to the vector @var{x} ## until it is of length @var{l}. If the third argument is not ## supplied, a value of 0 is used. ## -## If @code{length (@var{x}) > @var{l}}, elements from the beginning (end) of +## If @code{length (@var{x}) > @var{l}}, elements from the beginning of ## @var{x} are removed until a vector of length @var{l} is obtained. ## ## If @var{x} is a matrix, elements are prepended or removed from each row. ## -## If the optional @var{dim} argument is given, then operate along this +## If the optional argument @var{dim} is given, operate along this ## dimension. -## @seealso{postpad} +## @seealso{postpad, cat, resize} ## @end deftypefn ## Author: Tony Richardson