Highlight graphical object
Highlight 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");
Highlight the state in the Stateflow Editor.
graphicalObject — Graphical object
Stateflow.State object |
Stateflow.Box object |
Stateflow.Function object | ...
Graphical object, specified as a Stateflow API object of one of these types:
To clear the highlighting, use the
hilite_system (Simulink) function. For example, to clear the highlighting in chart
Alternatively, you can use the Stateflow Editor. In the Debug tab, under Animation, click the Remove animation highlighting button .