MATLAB Function Block Basics
Use MATLAB Function blocks to implement MATLAB functions in Simulink models.
Outils
MATLAB Function Block Editor | Create, edit, and debug MATLAB code in MATLAB Function blocks |
Blocs
MATLAB Function | Include MATLAB code in models that generate embeddable C code |
Objets
MATLABFunctionConfiguration | MATLAB Function block property configuration (depuis R2019b) |
Stateflow.EMChart | Stateflow interface to MATLAB Function block |
Paramètres du modèle
Rubriques
- Implement MATLAB Functions in Simulink with MATLAB Function Blocks
Use MATLAB Function blocks to implement code written in MATLAB into Simulink models.
- Resolve Signal Objects for Output Variables
Manage implicit signal resolution at various levels of the model hierarchy.
- Code and Integration Limitations for MATLAB Function Blocks
Learn limitations of MATLAB Function blocks before use in your model.
- Integrate C Code by Using the MATLAB Function Block
Use MATLAB Function blocks to call external C code and control enumeration and bus typedefs.
- Overview of Integrating Python Code with Simulink
Integrate Python code with Simulink Using MATLAB Function block or MATLAB System block.
- Configure MATLAB Function Blocks Programmatically
Set up a MATLAB Function block and inspect it with programmatic commands.
Résolution des problèmes
Debug MATLAB Function block code during simulation.
Prevent Algebraic Loop Errors in MATLAB Function, Chart, and Truth Table Blocks
Adhere to restrictions for using MATLAB Function blocks, Chart, and Truth Table blocks in feedback loops.
Initialize Persistent Variables in MATLAB Functions
Specialized semantics impact the way that a function initializes persistent data.