Exporting the model browser list of subsystems - Simulink

3 vues (au cours des 30 derniers jours)
Charles
Charles le 5 Oct 2018
Commenté : Charles le 18 Déc 2024
We need to divide and conquer a review of a fairly large model library. Is there a way to generate a list of subsystems? In the past I'd screenshot the Model Browser and paste in Excel but I'm sure there's an easier way. Thanks in advance!

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 5 Oct 2018
find_system(bdroot,'Blocktype','SubSystem')
check for other options of find_system
  3 commentaires
Fangjun Jiang
Fangjun Jiang le 18 Déc 2024
This is in R2022b. If it does not work in R2017b, then temorarily save the library file to a model file.
>> open_system('simulink')
>> find_system('simulink','Blocktype','SubSystem')
ans =
152×1 cell array
{'simulink/Additional Math↵& Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete/Fixed-Point↵State-Space' }
Charles
Charles le 18 Déc 2024
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by