Mercurial > octave-nkf
diff libinterp/octave-value/ov-cell.cc @ 18537:f958e8cd6348
maint: Periodic merge of gui-release to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 01 Mar 2014 22:11:32 -0800 |
parents | bcd71a2531d3 ea0d4dea1a17 |
children | 76478d2da117 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.cc Thu Feb 27 09:56:47 2014 -0800 +++ b/libinterp/octave-value/ov-cell.cc Sat Mar 01 22:11:32 2014 -0800 @@ -1290,10 +1290,12 @@ @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\ +\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\ +@seealso{cellstr, mat2cell, num2cell, struct2cell}\n\ @end deftypefn") { octave_value retval; @@ -1368,9 +1370,15 @@ DEFUN (cellstr, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} cellstr (@var{string})\n\ +@deftypefn {Built-in Function} {@var{cstr} =} cellstr (@var{strmat})\n\ Create a new cell array object from the elements of the string\n\ -array @var{string}.\n\ +array @var{strmat}.\n\ +\n\ +Each row of @var{strmat} becomes an element of @var{cstr}. Any trailing\n\ +spaces in a row are deleted before conversion.\n\ +\n\ +To convert back from a cellstr to a character array use @code{char}.\n\ +@seealso{cell, char}\n\ @end deftypefn") { octave_value retval; @@ -1401,11 +1409,11 @@ DEFUN (struct2cell, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {} struct2cell (@var{S})\n\ +@deftypefn {Built-in Function} {@var{c} =} struct2cell (@var{s})\n\ Create a new cell array from the objects stored in the struct object.\n\ If @var{f} is the number of fields in the structure, the resulting\n\ cell array will have a dimension vector corresponding to\n\ -@code{[@var{F} size(@var{S})]}. For example:\n\ +@code{[@var{f} size(@var{s})]}. For example:\n\ \n\ @example\n\ @group\n\