The easiest and fastest solution I found to remove the cyan color is to right-click with the mouse and then "Update Diagram", or left click on the highlighted block.
Delete all highlight for simuling GoTo and From block
2 次查看(过去 30 天)
显示 更早的评论
Good morning. Is there any way to remove highlighted GoTo and From for all blocks highlighted (typically blue) without pressing the link of GoTo or From block?
0 个评论
采纳的回答
更多回答(1 个)
nguyen congkien
2018-5-30
You can open your model, save the code below in m file and Run it.
%=====================================================================
function run_code()
%For Goto block
remove_highlight('Goto');
%For From block
remove_highlight('From');
end
function remove_highlight(blktype)
blk_hdl = find_system(bdroot,'FindAll','on','BlockType',blktype);
for i = 1 : length(blk_hdl)
set_param(blk_hdl(i),'ForegroundColor','Black','BackgroundColor','White');
end
end
%=====================================================================
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!