| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
sfnew
sfnew('chart_type')
sfnew('model_name')
sfnew('chart_type','model_name')
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.
chart_type |
Empty block to add to an empty model:
| ||||||||
model_name |
Name of the model. |
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')
sfhelp | sfprint | sfroot | sfsave | stateflow
![]() | sflib | sfopen | ![]() |

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 |