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

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

 Risposta accettata

MathWorks Support Team
MathWorks Support Team il 15 Nov 2019

0 voti

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

Più risposte (0)

Categorie

Scopri di più su 建模 in Centro assistenza e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!