In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines
조회 수: 7 (최근 30일)
이전 댓글 표시
In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines
댓글 수: 0
채택된 답변
Christopher Wallace
2018년 7월 19일
Yes, you can use the 'hilite_system' function.
If you want to highlight only pieces of the model you selected you would first need to find the handles for each block and line. This can be done by using 'find_system'.
Example code for highlighting a group of blocks and lines you've selected:
selectedBlocks = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', 'Selected', 'on');
hilite_system(selectedBlocks);
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!