MATLAB Function Reference    
cell2struct

Convert cell array to structure array

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


 cell celldisp