Documentation

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 classes to structure fields

 Do not assign cell arrays to structure fields

Was this topic helpful?