By using Simulink functions, you can call Simulink subsystems in the state and transition actions of a Stateflow® chart to create more efficient, readable models.
Specify function calls in states and transitions.
Reuse Simulink Components in Stateflow Charts
Create and execute Simulink functions in Stateflow.
Bind a Simulink Function to a State
Specify the behavior of subsystem variables between function executions.
Improve Chart Design by Using Simulink Functions
Replace a function-call subsystem with a Simulink function in a Stateflow chart.
Schedule Execution of Multiple Controllers
Use Simulink functions to improve the design of a Stateflow chart.
Reuse Functions by Using Atomic Boxes
Encapsulate reusable functions in a separate namespace.