Programming and Data Types    

Cell Arrays of Structures

Use cell arrays to store groups of structures with different field architectures.

Cell 1 of the c_str array contains a structure with two fields, one a string and the other a vector. Cell 2 contains a structure with three vector fields.

When building cell arrays of structures, you must use content indexing. Similarly, you must use content indexing to obtain the contents of structures within cells. The syntax for content indexing is:

For example, to access the label field of the structure in cell 1, use c_str{1}.label.

  Converting Between Cell and Numeric Arrays Function Handles