Mercurial > jwe > octave
changeset 12715:25f8acbb6be2 stable
doc: Add additional calling forms to cell()
ov-cell.cc (cell): Add additional calling forms to DOCSTRING so it resembles
zeros().
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 06 Jun 2011 20:56:44 -0700 |
parents | 8176c16628c8 |
children | a87052630372 |
files | src/ov-cell.cc |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-cell.cc Mon Jun 06 20:21:19 2011 -0700 +++ b/src/ov-cell.cc Mon Jun 06 20:56:44 2011 -0700 @@ -1271,14 +1271,15 @@ DEFUN (cell, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} cell (@var{x})\n\ -@deftypefnx {Built-in Function} {} cell (@var{n}, @var{m})\n\ -Create a new cell array object. If invoked with a single scalar\n\ -argument, @code{cell} returns a square cell array with the dimension\n\ -specified. If you supply two scalar arguments, @code{cell} takes\n\ -them to be the number of rows and columns. If given a vector with two\n\ -elements, @code{cell} uses the values of the elements as the number of\n\ -rows and columns, respectively.\n\ +@deftypefn {Built-in Function} {} cell (@var{n})\n\ +@deftypefnx {Built-in Function} {} cell (@var{m}, @var{n})\n\ +@deftypefnx {Built-in Function} {} cell (@var{m}, @var{n}, @var{k}, @dots{})\n\ +@deftypefnx {Built-in Function} {} cell ([@var{m} @var{n} @dots{}])\n\ +Create a new cell array object.\n\ +If invoked with a single scalar integer argument, return a square\n\ +@nospell{NxN} cell array. If invoked with two or more scalar\n\ +integer arguments, or a vector of integer values, return an array with\n\ +the given dimensions.\n\ @end deftypefn") { octave_value retval;