Simulink.ID.hilite

Highlight block, annotation, or Stateflow object

Simulink.ID.hilite is not recommended. Use hilite_system instead.

Description

example

Simulink.ID.hilite(simulinkID) highlights the block, annotation, or Stateflow object that has the Simulink Identifier simulinkID.

example

Simulink.ID.hilite(simulinkID,style) uses the specified highlighting style.

Examples

collapse all

Open the model vdp.

vdp

Get the Simulink Identifier of the Mu block.

muSID = Simulink.ID.getSID('vdp/Mu')

Highlight the Mu block.

Simulink.ID.hilite(muSID)

Open the model vdp.

vdp

Get the Simulink Identifier of the Mu block.

muSID = Simulink.ID.getSID('vdp/Mu')

Highlight the Mu block using the style 'fade'.

Simulink.ID.hilite(muSID,'fade')

Input Arguments

collapse all

Simulink Identifier of a block, annotation, or Stateflow object, specified as a character vector or string scalar.

Example: 'vdp:4'

Highlighting style, specified as one of these values. You can customize the appearance of any of the styles. See Customize a Highlighting Style.

  • 'default' — Default color scheme: red outline, yellow fill.

  • 'none' — Clears the highlight.

    To clear all highlighting, on the Debug tab, in the Trace Signal button group, click the Remove trace button.

  • 'debug' — Uses default color scheme.

  • 'different' — Applies red outline, white fill.

  • 'error' — Uses default color scheme.

  • 'fade' — Applies gray outline, white fill.

  • 'find' — Applies dark blue outline, blue fill.

  • 'lineTrace' — Applies red outline, blue fill.

  • 'unique' — Dark blue outline, white fill.

  • 'user1', 'user2', 'user3', 'user4', 'user5' — Applies custom highlight: black outline, white fill by default (that is, no highlight).

In addition, you can use these color schemes. The first word is the outline and the second is the fill color.

  • 'orangeWhite'

  • 'blackWhite'

  • 'redWhite'

  • 'blueWhite'

  • 'greenWhite'

Introduced in R2009b