matlab代码画多条突显,matlab实现突出显示虚拟块

本文介绍如何使用hilite_virtual_blocks()函数在Matlab中高亮Simulink模型中不直接影响仿真结果的虚拟块,通过对比不同优化设置下的区块排列,探讨模型配置参数优化的影响,并提供了一个示例。此功能可用于模型覆盖度研究,适用于大型模型分析。
摘要由CSDN通过智能技术生成

Highlight the Virtual Blocks

Syntax: hilite_virtual_blocks()

modelName - String input of the model name.

This function is an attempt to hightlight the blocks those are not contributing to the model simulation directly.

This function is also useful to study the impact of optimization settings of model configuration parameters.

Idea: If we can't set "add_exec_event_listener" to a block, then it means it is optimizied for simulation.

please learn the function >>help add_exec_event_listener.

Sample: Unzip the contents and run hilite_virtual_blocks('check_path') in the MATLAB command prompt. Note: 'check_path' is a sample model in the attachment.

Please compare the Simulink block sorted order for the same. This gives some idea on how the Simulink engine works.

---- Sorted list for 'check_path' [2 nonvirtual blocks, directFeed=0]

0:0 'check_path/Constant' (Constant, tid=-2)

0:1 'check_path/Scope' (Scope, tid=1)

Call the function again by changing the optimization setting and note the differneces from the previous call.

Play it with a larger model. This function potentially can be used for studying model coverage.

Please feel free to improve and comment on this.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值