Highlight tracing results
This example shows how to trace from the first inport of the block
vdp/x1 to all sources.
open_system('vdp') G = sltrace('vdp/x1', 'Source','Port', 1, 'TraceAll','on');
Highlight the tracing results and plot the trace graph.
Highlight the block
vdp/Scope and the line connecting to the inport of
bh = get_param('vdp/Scope','Handle'); inportH = get_param('vdp/Scope','PortHandles').Inport; lh = get_param(inportH,'line'); highlight(G,[bh, lh])
Remove the highlighting.
target— Items to highlight
Specific items to highlight, specified as a block handle, a line handle, or an array of block and line handles.