Simulink Function
R2026bSimulink function subsystem in Stateflow chart
Description
A Simulink® function embeds a Simulink subsystem inside a Stateflow® chart. You can use the Simulink function to call Simulink blocks in the actions of states and transitions, or to define functions that require Simulink blocks.
To add a Simulink function to a chart:
In the Stateflow Editor, in the object palette, click the Simulink Function icon
.Click a location in the chart canvas to place the Simulink function.
Type a function signature in the format
y = f(x).
Properties
Version History
Introduced in R2008b