MATLAB Function Reference    
struct2cell

Structure to cell array conversion

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, fieldnames


  struct strvcat