Strutture
Definizione e operazioni della struttura supportata
È possibile definire le variabili nei blocchi MATLAB Function e MATLAB System come strutture.
Blocchi
| MATLAB Function | Include MATLAB code in Simulink models | 
| MATLAB System | Include System object in model | 
Funzioni
| coder.cstructname | Name C structure type in generated code | 
Argomenti
- Create Structures in MATLAB Function BlocksFollow guidelines for creating structures. 
- Index Substructures and FieldsRefer to field values individually In a MATLAB Function block. 
- Initialize Matrix Using a Nontunable Structure ParameterUse a nontunable structure parameter input to initialize a matrix output. 
- Attach Buses to MATLAB Function BlocksUse structures in a MATLAB Function block. 
- Pass Large Structures as Input ParametersTo avoid memory issues, pass large structures by reference. 
- Define Scalar Structures for Code GenerationAdhere to code generation restrictions for scalar structures. 
- Define Arrays of Structures for Code GenerationAdhere to code generation restrictions for arrays of structures. 
- Definizione della struttura per la generazione di codiceUtilizzare strutture nel codice MATLAB® destinato alla generazione di codice. 
- Structure Operations Allowed for Code GenerationUse structure operations that code generation supports.