MATLAB Function Reference |
Convert structure to cell array
Syntax
Description
c = struct2cell(s)
converts the m
-by-n
structure s
(with p
fields) into a p
-by-m
-by-n
cell array c
.
If structure s
is multidimensional, cell array c
has size [p size(s)]
.
Examples
Converting the structure to a cell array,
See Also
cell2struct
, cell
, iscell
, struct
, isstruct
, fieldnames
, dynamic field names
struct | strvcat |
© 1994-2005 The MathWorks, Inc.