フィルターのクリア

search a subsystem in multiple Simulink file

5 ビュー (過去 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 Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by