Mercurial > hg > octave-lyh
diff scripts/strings/blanks.m @ 8442:502e58a0d44f
Fix docstrings, add examples, references and tests to string functions
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Mon, 05 Jan 2009 08:11:03 +0100 |
parents | 83a8781b529d |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/strings/blanks.m +++ b/scripts/strings/blanks.m @@ -19,7 +19,18 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} blanks (@var{n}) -## Return a string of @var{n} blanks. +## Return a string of @var{n} blanks, for example: +## +## @example +## @group +## blanks(10); +## whos ans; +## @result{} +## Attr Name Size Bytes Class +## ==== ==== ==== ===== ===== +## ans 1x10 10 char +## @end group +## @end example ## @seealso{repmat} ## @end deftypefn