Remove Highlighting in Block
Show older comments
Hello Community,
when i try to highlight and remove the highlight for a block programitically using hilite_system function
the Blocks loses its foreground colour which was set by default
For example:
switch block's foreground colour is green before simulation
during simulation i am highlighting it to blue
Now,After simulation when i remove the highlight using hilite_system(blockpath,'off')/ hilite_system(blockpath,'none') the default green foreground color has turned to black
I need to retain the foreground color when i remove highlighting
Please help me how to resolve this problem
Thanks
Ajay
Accepted Answer
More Answers (1)
Kaushal Dave
on 5 Jun 2020
0 votes
To remove all highlighting, right-click the model, and then select Remove Highlighting, or, on the Signal tab, click Remove Trace.
If you want to remove thethe highlinghting generated from the error in Simulink, we can remove highlighting in Simulink by "Removing Highlighting: To remove all highlighting, select Remove Highlighting from the model's context menu, or select Display > Remove Highlighting." This works for Models, however when saved as a library, this does not work.
1 Comment
Ajay krishna Vasanthakumar
on 5 Jun 2020
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!