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

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

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 29 Oct 2019

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!