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

7 vues (au cours des 30 derniers jours)
Lucas S
Lucas S le 3 Mar 2020
Commenté : Lucas S le 3 Mar 2020
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 !

Réponse acceptée

Ankit
Ankit le 3 Mar 2020
  1 commentaire
Lucas S
Lucas S le 3 Mar 2020
Thank you ! The answer provided by Monika helped me more for my problem.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Subsystems dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by