Strukturen
Definition und unterstützte Strukturoperationen
Sie können Variablen in MATLAB Function- und MATLAB System-Blöcken als Strukturen definieren.
Blöcke
| MATLAB Function | Include MATLAB code in Simulink models |
| MATLAB System | Include System object in model |
Funktionen
coder.cstructname | Name generated or externally defined structure type in C or C++ code |
Themen
- 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.
- Strukturdefinition für die Codegenerierung
Verwenden Sie Strukturen im MATLAB®-Code, die für die Codegenerierung vorgesehen sind.