필터 지우기
필터 지우기

How to highlight one connecting line in Simulink?

조회 수: 4 (최근 30일)
Wenjie Han
Wenjie Han 2018년 8월 6일
답변: GK 2018년 9월 5일
I want to highlight one specified connecting line in Simulink. But when I tried vdp, find_system returns all lines handles of the model. But when use hilite_system(lineHandle) to highlight one specified connecting line, different handles show the same highlighting! It seems that for some line handles, although they have different line handle values, but refer to the same group of lines.
if true
% code
L = find_system('mvdp','FindAll','on','type','line');
hilite_system(L(6));
hilite_system(L(7));
end
L(6) and L(7) both highlight a group of lines. That's not what I want. Hope one single line is highlighted when it's src and dst handles are given

답변 (1개)

GK
GK 2018년 9월 5일
Hi, As I checked, for a single line originating from 1 port of 1 block,
No of linehandles = no of lines between nodes.
Please check screenshot where 'x1' line has 6 line handles.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by