Create Simulink model that contains an empty Stateflow block
sfnew
creates an untitled Simulink® model that contains an empty Stateflow® chart.
sfnew
creates an untitled
model that contains an empty block of type chart_type
chart_type
.
sfnew
creates a model called
model_name
model_name
that contains an empty chart.
sfnew
creates a model called chart_type
model_name
model_name
that contains an empty block
of type chart_type
.
The default action language for new charts is MATLAB. To change the default action language to C, use the command
sfpref('ActionLanguage','C')
. For more information, see
Modify the Action Language for a Chart.
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