MATLAB Answers

0

In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines

Asked by Gokul Murali on 19 Jul 2018
Latest activity Answered by Gokul Murali on 20 Jul 2018
In Simulink, is there a way to highlight a specific part of a circuit with a different coloured circuit lines

  0 Comments

Sign in to comment.

Products


Release

R2017b

2 Answers

Answer by Christopher Wallace on 19 Jul 2018
 Accepted Answer

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 Comment

Hi Christopher, could you further help me with this as I am unable to perform this operation

Sign in to comment.


Answer by Gokul Murali on 20 Jul 2018

Thank you Christopher, I was able to do it...
Thanks a ton

  0 Comments

Sign in to comment.