Get selected objects (simulink)
Show older comments
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
Accepted Answer
More Answers (1)
Gaganjyoti Baishya
on 21 Jun 2020
0 votes
To get an array of all selcted blocks use find_system(bdroot, 'Selected', 'on');
1 Comment
Joe Rustan
on 3 Nov 2022
Is there a way to get just the currently selected signal line coming from/to a block? Thanks.
Categories
Find more on Communication in Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!