How to differentiate Subsystem and MATLAB Function Block with find_system()

I have a model with many Subsystem blocks and many MATLAB Function blocks. I'm trying to use find_system to store all Subsystem blocks but as the type of both blocks is Subsystem i can't store Subsystems with this code:
find_system('model', 'SearchDepth', 1, 'BlockType', 'SubSystem');
How can i limit to only Subsystems ?
Thanks you !

 채택된 답변

Ankit
Ankit 2020년 3월 3일

0 개 추천

댓글 수: 1

Thank you ! The answer provided by Monika helped me more for my problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

질문:

2020년 3월 3일

댓글:

2020년 3월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by