sfnew
Create Simulink model that contains an empty Stateflow block
Description
sfnew
creates an untitled Simulink® model that contains an empty Stateflow® chart.
sfnew(___)
enables you to specify the input
arguments in the previous syntaxes by using variables or strings. For example, you
can enter sfnew(var1,var2)
where var1
is a
variable set to "-C"
and var2
is a variable
set to "MyModel"
.
Examples
Input Arguments
Tips
The default action language for new charts is MATLAB. To change the default action language, use the
sfpref
function. For example, to change the default action language to C, enter:For more information, see Modify the Action Language for a Chart.sfpref(ActionLanguage="C")
To create a standalone chart that you can execute as a MATLAB object, use the
edit
function. For example, in the MATLAB Command Window, enter:For more information, see Create Stateflow Charts for Execution as MATLAB Objects.edit chart.sfx
Version History
Introduced before R2006a