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

Cell array to structure array conversion

Syntax

Description

s = cell2struct(c,fields,dim) converts the cell array c into the structure s by folding the dimension dim of c into fields of s. The length of c along the specified dimension (size(c,dim)) must match the number of fields names in fields. Argument fields can be a character array or a cell array of strings.

Examples

See Also

fieldnames  Field names of a structure

struct2cell  Structure to cell array conversion



[ Previous | Help Desk | Next ]