Skip to Main Content Skip to Search
Product Documentation

sfnew - Create model containing empty Stateflow block

Syntax

sfnew
sfnew('chart_type')
sfnew('model_name')
sfnew('chart_type','model_name')

Description

sfnew creates an untitled model with an empty chart that supports full semantics.

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

sfnew('model_name') creates a model called model_name with an empty chart that supports full semantics.

sfnew('chart_type','model_name') creates a model called model_name with an empty block of type chart_type.

Input Arguments

chart_type

Empty block to add to an empty model:

-ClassicUse full chart semantics
-MealyUse only Mealy state machine semantics
-MooreUse only Moore state machine semantics
-TTUse a truth table

model_name

Name of the model.

Examples

Create a model called MyModel with an empty chart that uses only Mealy semantics:

sfnew('-Mealy','MyModel')
 

Create a model called MyModel with an empty chart that uses only Moore semantics:

sfnew('-Moore','MyModel')

See Also

sfhelp | sfprint | sfroot | sfsave | stateflow

How To

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS