Open Stateflow library window and create Simulink model that contains an empty chart
stateflow
creates an untitled Simulink® model that contains an empty Stateflow® chart. The function also opens the Stateflow block library. From this library, you can drag Stateflow blocks into models or access the Stateflow Examples Library.
To only create a Simulink model that contains an empty Stateflow block, use the sfnew
function.
To only open the Stateflow block library, use the sflib
function.
To create a standalone chart that you can execute as a MATLAB® object, open the Stateflow editor by using the edit
function. For example, at
the MATLAB Command Window,
enter:
edit chart.sfx