Simulink 中如何通过脚本将模型中的模块注释掉?

Simulink 中如何通过脚本将模型中的模块注释掉?

 采纳的回答

请执行:
>> set_param('modelName/ToWorkspace','commented','on')
来注释掉相关模块。
如果需要将已经注释掉的模块还原,可以执行:
>> set_param('modelName/ToWorkspace','commented','off')

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!