Get selected objects (simulink)
Afficher commentaires plus anciens
Hi, when I want to run a script on a selected simulink object, I use "gca" to get its handle. If I select many objects, "gca" return only the last selected. Ho can I get handles of ALL selected objects?
Thanks Adriano
Réponse acceptée
Plus de réponses (1)
Gaganjyoti Baishya
le 21 Juin 2020
0 votes
To get an array of all selcted blocks use find_system(bdroot, 'Selected', 'on');
1 commentaire
Joe Rustan
le 3 Nov 2022
Is there a way to get just the currently selected signal line coming from/to a block? Thanks.
Catégories
En savoir plus sur Communication in Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!