Exporting the model browser list of subsystems - Simulink
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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!
0 commentaires
Réponse acceptée
Fangjun Jiang
le 5 Oct 2018
find_system(bdroot,'Blocktype','SubSystem')
check for other options of find_system
3 commentaires
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' }
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Programmatic Model Editing 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!