Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?