Main Content

highlight

Highlight graphical object

Description

highlight(graphicalObject) highlights a graphical object in the Stateflow® Editor.

example

Examples

collapse all

Open a Simulink® model called myModel. Suppose that the model contains a Stateflow chart with a state named A.

open_system("myModel")

Find the state named A.

st = find(sfroot,"-isa","Stateflow.State",Name="A");

Highlight the state in the Stateflow Editor.

highlight(st);

Input Arguments

collapse all

Tips

To clear the highlighting, use the hilite_system (Simulink) function. For example, to clear the highlighting in chart ch, enter:

hilite_system(ch.Path,"none")

Alternatively, you can use the Stateflow Editor. In the Debug tab, under Animation, click the Remove animation highlighting button .

Version History

Introduced in R2012a