Simulink function in chart, state, box, or function
Stateflow.SLFunction objects to create Simulink® functions that enable you to call Simulink subsystems in the actions of states and transitions. Typical applications
Defining a function that requires Simulink blocks
Scheduling execution of multiple controllers
For more information, see Reuse Simulink Components in Stateflow Charts.