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.
Create and execute Simulink functions in Stateflow.
Specify the behavior of subsystem variables between function executions.
Replace a function-call subsystem with a Simulink function in a Stateflow chart.
Use Simulink functions to improve the design of a Stateflow chart.
Encapsulate reusable functions in a separate namespace.
By using alphanumeric characters for argument names, you ensure that the names of Inport and Output blocks are compatible with the identifier naming rules of Stateflow charts.