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 !

 Respuesta aceptada

Ankit
Ankit el 3 de Mzo. de 2020

1 comentario

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 3 de Mzo. de 2020

Comentada:

el 3 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by