La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Structures
R2026aDéfinition et opérations supportées sur les 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 generated or externally defined structure type in C or C++ code |
Rubriques
- Create Structures in MATLAB Function Blocks
Follow guidelines for creating structures.
- 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.
- Structure Limitations for Code Generation (MATLAB Coder)
Adhere to code generation restrictions for structures.
- Generate Standalone C Code for Array of Structures (MATLAB Coder)
Generate code for a MATLAB® function that uses a structure array.