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

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

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 29 Okt. 2019

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!