Defines |
#define | CELL_ELT_TAG "<cell-element>" |
#define | FORWARD_MAPPER(UMAP) |
Functions |
| DEFINE_OCTAVE_ALLOCATOR (octave_cell) |
| DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_cell,"cell","cell") |
| DEFUN (iscell, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} iscell (@var{x})\n\
Return true if @var{x} is a cell array object.\n\
@seealso{ismatrix, isstruct, iscellstr, isa}\n\
@end deftypefn") |
| 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\
@end deftypefn") |
| DEFUN (iscellstr, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} iscellstr (@var{cell})\n\
Return true if every element of the cell array @var{cell} is a\n\
character string.\n\
@seealso{ischar}\n\
@end deftypefn") |
| DEFUN (cellstr, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} cellstr (@var{string})\n\
Create a new cell array object from the elements of the string\n\
array @var{string}.\n\
@end deftypefn") |
| DEFUN (struct2cell, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} 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\
\n\
@example\n\
@group\n\
s = struct('name', @{'Peter', 'Hannah', 'Robert'@},\n\
'age', @{23, 16, 3@});\n\
c = struct2cell(s)\n\
@result{} c = @{1x1x3 Cell Array@}\n\
c(1,1,:)(:)\n\
@result{} ans =\n\
@{\n\
[1,1] = Peter\n\
[2,1] = Hannah\n\
[3,1] = Robert\n\
@}\n\
c(2,1,:)(:)\n\
@result{} ans =\n\
@{\n\
[1,1] = 23\n\
[2,1] = 16\n\
[3,1] = 3\n\
@}\n\
@end group\n\
@end example\n\
\n\
@seealso{cell2struct, fieldnames}\n\
@end deftypefn") |