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

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

 Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Oct 2019

0 votes

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

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!