sfnew

Create Simulink model that contains an empty Stateflow block

Description

example

sfnew creates an untitled Simulink® model that contains an empty Stateflow® chart.

example

sfnew chart_type creates an untitled model that contains an empty block of type chart_type.

example

sfnew model_name creates a model called model_name that contains an empty chart.

example

sfnew chart_type model_name creates a model called model_name that contains an empty block of type chart_type.

Examples

collapse all

Create an untitled model that contains an empty Stateflow chart that uses MATLAB® as the action language.

sfnew

Create an untitled model called MyModel that contains an empty Stateflow truth table block.

sfnew -TT

Create a model called MyModel that contains an empty Stateflow chart that uses MATLAB as the action language.

sfnew 'MyModel'

Create a model called MyModel that contains an empty Stateflow chart that uses Moore semantics.

sfnew -Moore 'MyModel'

Input Arguments

collapse all

Type of Stateflow block to add to empty model, specified as one of these options.

OptionDescription
-MATLABChart that supports MATLAB expressions in actions
-CChart that supports C expressions in actions
-MealyChart that supports Mealy machine semantics
-MooreChart that supports Moore machine semantics
-STTState Transition Table
-TTTruth Table

Name of the Simulink model, specified as a character vector.

Tips

Introduced before R2006a