Main Content

Assign Values to Structures and Fields

When assigning values to a structure, substructure, or field for code generation, use these guidelines:

 Field properties must be consistent across structure-to-structure assignments

 For structures with constant fields, do not assign field values inside control flow constructs

 Do not assign mxArrays to structures

 Do not assign handle classes or sparse arrays to global structure variables