Simulink.ID.hilite
(Not recommended) Highlight object associated with Simulink Identifier
Simulink.ID.hilite
is not recommended. Use hilite_system
instead. For more information, see Version History.
Description
Examples
Highlight Block
Open the model vdp
.
openExample('simulink_general/VanDerPolOscillatorExample')
Get the Simulink Identifier of the Mu block.
muSID = Simulink.ID.getSID('vdp/Mu')
Highlight the Mu block.
Simulink.ID.hilite(muSID)
Highlight Block Using a Highlight Style
Open the model vdp
.
openExample('simulink_general/VanDerPolOscillatorExample')
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
SID
— Simulink Identifier
character vector | string scalar
Simulink Identifier, specified as a character vector or string scalar.
To get the SID for an object, use the Simulink.ID.getSID
function.
Example: 'vdp:4'
style
— Highlighting style
'find'
(default) | character vector | string scalar
Highlighting style, specified as one of these values.
'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'
You can customize the appearance of any of the styles. See Customize Highlighting Style.
Version History
Introduced in R2009bR2020a: Not recommended
Simulink.ID.hilite
is not recommended. Use hilite_system
instead.
This table shows a typical usage of Simulink.ID.hilite
and how to
update your code.
Not Recommended | Recommended |
---|---|
SID = Simulink.ID.getSID('vdp/Mu');
Simulink.ID.hilite(SID) |
hilite_system('vdp/Mu') |
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)