La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Fonctions MATLAB
Incorporez du code MATLAB® dans vos diagrammes Stateflow®. Implémentez des algorithmes qui sont plus faciles à exprimer avec MATLAB, notamment des calculs matriciels et des analyses de données.
Rubriques
- Reuse MATLAB Code by Defining MATLAB Functions
Create and execute MATLAB functions in a Stateflow chart.
- Program a MATLAB Function in a Chart
Define the logical behavior of a MATLAB function.
- Access Simulink Bus Signals in MATLAB Functions
This example shows how to read from and write to Simulink® bus signals in a MATLAB® function by using MATLAB and Stateflow® structures.
- Export Stateflow Functions for Reuse
Extend the scope of your functions to other blocks in a Simulink® model.
- Reuse Functions by Using Atomic Boxes
Encapsulate reusable functions in a separate namespace.
Résolution des problèmes
Debug a MATLAB Function in a Chart
Use breakpoints to debug MATLAB functions.
Initialize Persistent Variables in MATLAB Functions
Specialized semantics impact the way that a function initializes persistent data.