Stateflow    

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 Machine object that represents the model itself.


  Quick Start for the Stateflow API Access the Machine Object