Root of Stateflow hierarchy
root = sfroot
Simulink.Root object at the top level of the Stateflow® hierarchy of objects. Use the
Root object to access
all other API objects in your charts. For more information, see Access Objects in Your Stateflow Chart.
Zoom in on State in Chart
Open a Simulink® model called
myModel. Suppose that the model
contains a Stateflow chart with a state named
Find the state named
st = find(sfroot,"-isa","Stateflow.State",Name="A");
Zoom in on the state in the Stateflow Editor.
Introduced before R2006a