|Name C structure type in generated code|
Follow guidelines for creating structures.
Use the Ports and Data Manager to add a structure variable to a MATLAB Function block.
Adhere to code generation restrictions for scalar structures.
Adhere to code generation restrictions for arrays of structures.
Use structures in a MATLAB Function block.
Use a nontunable structure parameter input to initialize a matrix output.
Refer to field values individually In a MATLAB Function block.
Follow guidelines for assigning values to structures and fields in a MATLAB Function block.
To avoid memory issues, pass large structures by reference.
Use structures in MATLAB® code intended for code generation.
Use structure operations that code generation supports.
Structures can be inputs, outputs, local variables, persistent variables, or parameters.
Connect structure inputs and outputs in a MATLAB Function block to bus signals.
Adhere to restrictions for using structures in a MATLAB Function block.
Structures in MATLAB Function blocks support a subset of the operations available for MATLAB structures.