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

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

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 15 Nov. 2019

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu 建模 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!