struct2cell
Convert a structure to a cell array.
Syntax
Section titled “Syntax”c = struct2cell(s)Description
Section titled “Description”Returns a cell array containing the values of s’s fields, in the order they appear. The result has one cell per field per struct-array element.
Examples
Section titled “Examples”s.a = 1; s.b = 'foo'; s.c = [3 4];struct2cell(s) % {1; 'foo'; [3 4]}See also
Section titled “See also”cell2struct— Convert a cell array to a structure with named fields.fieldnames— List of field names in a structure.