search a subsystem in multiple Simulink file

조회 수: 1 (최근 30일)
Ra
Ra 2022년 12월 8일
답변: Sylvain 2022년 12월 9일
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일
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

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by