How to search multiple block types using find_system
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vamsinag Gunti
le 26 Nov 2018
Réponse apportée : Fangjun Jiang
le 6 Fév 2019
Hi,
Is it possible to find Simulink Blocks of multiple Block Types using the find_system command only once?
E.g.
blocks = find_system(bdroot, 'BlockType', {'Terminator', 'Outport'})
Of this is not possible, in what other ways can I store the blocks of these two different types in the same structure/array?
Thanks in advance :)
Best regards,
Vamsi
0 commentaires
Réponse acceptée
Fangjun Jiang
le 6 Fév 2019
Turn on regexp
find_system(bdroot,'regexp','on','BlockType','Inport|outport')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown 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!