Stateflow User's Guide Previous page   Next Page

Create a New Model and Chart

Create a new model by itself in MATLAB with the following steps:

  1. Close down all models in Simulink.
  2. Use the objectless method sfnew to create a new chart.
  1. The sfnew method creates a new untitled Simulink model with a new Stateflow chart in it. Do not open the Stateflow chart.

You now have only one Simulink model in memory. You are now ready to access the API Model object that represents the model itself.


Previous page  Quick Start for the Stateflow API Access the Model Object Next page

© 1994-2005 The MathWorks, Inc.