UnHighlighting a subsytem in a Simulink model
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
As a beginner I am struggling with hilite_system functionality of Matlab. In my project I have to highlight certain blocks which I perform using hilite_system. But while unhighlighting these blocks, I have to perform each block individually. Their is an option in the menubar -> View - Remove Highlighting which removes all the highlighting of all the blocks. My question is that can I perform this(removing highlighting of all blocks by one command) via code?
Thanks in advance.
ThN
0 个评论
回答(2 个)
Kaustubha Govind
2013-4-16
Do you have the path to the block(s) that was used with the hilite_system command? If yes, this might work to undo the highlighting:
>> set_param(gcb,'HiliteAncestors', 'none');
1 个评论
subhra behera
2021-8-18
编辑:subhra behera
2021-8-18
I think the best way is to use
This will remove all highlighting models
>>SLStudio.Utils.RemoveHighlighting(get_param(bdroot,'handle'))
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!