La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Structures
Dans les blocs MATLAB Function et MATLAB System, il est possible de définir des variables en tant que structures.
Blocs
MATLAB Function | Include MATLAB code in Simulink models |
MATLAB System | Include System object in model |
Fonctions
coder.cstructname | Name C structure type in generated code |
Rubriques
- Create Structures in MATLAB Function Blocks
Follow guidelines for creating structures.
- Index Substructures and Fields
Refer to field values individually In a MATLAB Function block.
- Initialize Matrix Using a Nontunable Structure Parameter
Use a nontunable structure parameter input to initialize a matrix output.
- Attach Buses to MATLAB Function Blocks
Use structures in a MATLAB Function block.
- Pass Large Structures as Input Parameters
To avoid memory issues, pass large structures by reference.
- Define Scalar Structures for Code Generation
Adhere to code generation restrictions for scalar structures.
- Define Arrays of Structures for Code Generation
Adhere to code generation restrictions for arrays of structures.
- Structure Definition for Code Generation
Use structures in MATLAB® code intended for code generation.
- Structure Operations Allowed for Code Generation
Use structure operations that code generation supports.