Get selected objects (simulink)
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Gaganjyoti Baishya
am 21 Jun. 2020
0 Stimmen
To get an array of all selcted blocks use find_system(bdroot, 'Selected', 'on');
1 Kommentar
Joe Rustan
am 3 Nov. 2022
Is there a way to get just the currently selected signal line coming from/to a block? Thanks.
Kategorien
Mehr zu Communication in Simulink finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!