search a subsystem in multiple Simulink file

Hi all,
I need to analyse my repository of simulink file with a subsystem, whether it contain or not. If contain make a list.
Example: I have 100 slx file and in these 15 files contain a subsystem with similar name. I need to make a list of these slx file. Please help me

답변 (1개)

Sylvain
Sylvain 2022년 12월 9일

0 개 추천

You can get a list of the subsystems using the following command (some options might be removed)
ss = find_system(gcb,'LookUnderMasks','on','FindAll','off','SearchDepth',5,...
'BlockType', 'SubSystem')
then make a strcmp to match name of the block

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

Ra
2022년 12월 8일

답변:

2022년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by