Simulink 中如何通过脚本列出模型中的所有模块名字?

Simulink 中如何通过脚本列出模型中的所有模块名字?

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 15 Nov 2019

0 votes

参考代码是:
>> load_system('model_name')
>> bl = getfullname(Simulink.findBlocks('model_name'))
需要注意的是,这段代码的结果包括了:
封装内的模块;
被注释掉的模块;
变体子系统中的模块。

Plus de réponses (0)

Catégories

En savoir plus sur 建模 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!