| Stateflow | ![]() |
Open the Stateflow model window
Syntax
Description
The global stateflow method opens the Stateflow model window. The model contains an untitled Stateflow block, an Examples block, and a manual switch. The Stateflow block is a masked Simulink model and is equivalent to an empty, untitled Stateflow diagram. Use the Stateflow block to include a Stateflow diagram in a Simulink model.
Every Stateflow block has a corresponding S-function target called sfun. This target is the agent Simulink interacts with for simulation and analysis.
Arguments
Returns
Example
This example shows how to open the Stateflow model window and use a Stateflow block to create a Simulink model:
| sourcedTransitions | struct | ![]() |