Products & Services Solutions Academia Support User Community Company

Learn more about Stateflow   

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.

Inputs

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

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS