Variablen in MATLAB Function-Blöcken
Definieren von Blockvariablen für MATLAB Function-Blöcke
Definieren Sie Variablen in MATLAB Function-Blöcken in Ihrem Funktionscode. Passen Sie die Eigenschaften von Funktionsvariablen an, um auf Datenquellen innerhalb und außerhalb Ihrer Simulink®-Modelle zuzugreifen.
Tools
| MATLAB Function Block Editor | Create, edit, and debug MATLAB code in MATLAB Function blocks |
Blöcke
| MATLAB Function | Include MATLAB code in Simulink models |
Objekte
MATLABFunctionConfiguration | MATLAB Function block property configuration |
Stateflow.EMChart | Stateflow interface to MATLAB Function block |
Themen
- Create MATLAB Function Block Variables
Use MATLAB Function block variables to modify data input to the block, or to output modified data to the model.
- Set Properties for MATLAB Function Block Variables
Use the Property Inspector or the Model Explorer to define properties of MATLAB Function block variable properties.
- Access Workspace Data in MATLAB Function Blocks by Using Parameter Variables
Pass Simulink parameters and MATLAB® variables to a MATLAB Function block.
- Zugriff auf gespeicherte Daten in MATLAB Function-Blöcken
Zugreifen auf Data-Store-Daten in MATLAB Function-Blöcken durch Verwendung globaler Variablen.