Get selected objects (simulink)
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Gaganjyoti Baishya
il 21 Giu 2020
0 voti
To get an array of all selcted blocks use find_system(bdroot, 'Selected', 'on');
1 Commento
Joe Rustan
il 3 Nov 2022
Is there a way to get just the currently selected signal line coming from/to a block? Thanks.
Categorie
Scopri di più su Communication in Simulink in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!