comparison src/ov-cell.cc @ 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 7a5aacf65f81
children 72c96de7a403
comparison
equal deleted inserted replaced
12713:8176c16628c8 12715:25f8acbb6be2
1269 return retval; 1269 return retval;
1270 } 1270 }
1271 1271
1272 DEFUN (cell, args, , 1272 DEFUN (cell, args, ,
1273 "-*- texinfo -*-\n\ 1273 "-*- texinfo -*-\n\
1274 @deftypefn {Built-in Function} {} cell (@var{x})\n\ 1274 @deftypefn {Built-in Function} {} cell (@var{n})\n\
1275 @deftypefnx {Built-in Function} {} cell (@var{n}, @var{m})\n\ 1275 @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n})\n\
1276 Create a new cell array object. If invoked with a single scalar\n\ 1276 @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n}, @var{k}, @dots{})\n\
1277 argument, @code{cell} returns a square cell array with the dimension\n\ 1277 @deftypefnx {Built-in Function} {} cell ([@var{m} @var{n} @dots{}])\n\
1278 specified. If you supply two scalar arguments, @code{cell} takes\n\ 1278 Create a new cell array object.\n\
1279 them to be the number of rows and columns. If given a vector with two\n\ 1279 If invoked with a single scalar integer argument, return a square\n\
1280 elements, @code{cell} uses the values of the elements as the number of\n\ 1280 @nospell{NxN} cell array. If invoked with two or more scalar\n\
1281 rows and columns, respectively.\n\ 1281 integer arguments, or a vector of integer values, return an array with\n\
1282 the given dimensions.\n\
1282 @end deftypefn") 1283 @end deftypefn")
1283 { 1284 {
1284 octave_value retval; 1285 octave_value retval;
1285 1286
1286 int nargin = args.length (); 1287 int nargin = args.length ();