The cell array does not include field names. To return the field names in a cell array, use the fieldnames function. fieldnames and struct2cell return the field names and the values in the same order.
Input structure array. S can be a structure array of any size. If
S is an m-by-n structure
array with p fields, then C is a
p-by-m-by-n cell
array.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
If S is a variable-size array of structures, then each field of
every element must have the same type. Heterogeneous cell arrays cannot be
variable-size.
For a fixed-size array of structures S, if
struct2cell cannot convert S to a
homogeneous cell array, then the output cell array is heterogeneous. A heterogeneous
output cell array can have a maximum of 1024 elements.
Distributed Arrays Partition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.