How to discover all submodels within a simulink model programmatically ?
조회 수: 12 (최근 30일)
이전 댓글 표시
I would like to find all models contained in a simulink model programmatically ?
Is there a way to do that for instance with the get_param(model_name, argument) function ?
There is a 'Parent' argument but no 'Children' argument for this function
댓글 수: 2
Fangjun Jiang
2021년 1월 14일
편집: Fangjun Jiang
2021년 1월 14일
define "submodels". Model references, subsystems or something else? "parent" refers to parent subsystem
채택된 답변
Fangjun Jiang
2021년 1월 14일
Using the example model 'f14'. Play with some other options of find_system()
f14;
SubSysBlocks=find_system('f14','BlockType','SubSystem')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!