Programmatically create, edit, and simulate your Stateflow® charts by using MATLAB commands. Access and edit the properties and methods, set positions, or copy and paste objects in your chart. Edit graphical properties by accessing the editor object.
Create and edit Stateflow charts by using MATLAB commands.
Create and Destroy Stateflow Objects
Add and delete Stateflow objects to your chart.
Access Objects in Your Stateflow Chart
Create handles to manipulate Stateflow objects in your chart.
Copy and Paste Stateflow Objects
Access the clipboard object to duplicate Stateflow objects.
View Stateflow Graphical Objects
Use the fitToView
method to zoom in on an object in your
chart.
Move Stateflow Graphical Objects
Programmatically reposition states and subcharts.
Modify the Graphical Properties of Your Chart
Access the Editor
object to perform graphical operations on
a chart.
Create Default Transition Objects
Indicate which substate becomes active during state initialization.
Create Supertransition Objects
Connect transitions between different levels in a chart.
Specify Labels in States and Transitions Programmatically
Specify more than one line of text in your state and transition labels.