MATLAB Function Reference Previous page   Next Page
struct2cell

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

The commands

create the structure

Converting the structure to a cell array,

See Also

cell2struct, cell, iscell, struct, isstruct, fieldnames, dynamic field names


Previous page  struct strvcat Next page

© 1994-2005 The MathWorks, Inc.