Update subsystem's Block parameters for all the subsytems in a model.
1 次查看(过去 30 天)
显示 更早的评论
There are more than a few subsystems in my model, and I would to check "treat as Atomic model" in block parameters for all of them, at once.
0 个评论
采纳的回答
Fangjun Jiang
2022-5-6
h=find_system('ModelName','FindAll','on','BlockType','SubSystem')
set(h,'TreatAsAtomicUnit','On')
You might need to refine your search to avoid unintended SubSystem blocks.
3 个评论
Fangjun Jiang
2022-5-9
If doing it interactively in Simulink GUI, it can only be done one subsystem block at a time.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!