MATLAB Function Reference
  Go to function:
    Search    Help Desk 
struct2cell    Examples   See Also

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



[ Previous | Help Desk | Next ]