Zoom in on graphical object
Open a Simulink® model called
myModel. Suppose that the model
contains a Stateflow chart with a state named
Simulink.Root object at the top level of the
rt = sfroot;
Find the state named
st = find(rt,'-isa','Stateflow.State','Name','A');
Zoom in on the state in the Stateflow Editor.
graphicalObject— Graphical object
Stateflow.Functionobject | ...
Graphical object, specified as a Stateflow API object of one of these types: