Get selected objects (simulink)
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Gaganjyoti Baishya
2020-6-21
0 个投票
To get an array of all selcted blocks use find_system(bdroot, 'Selected', 'on');
1 个评论
Joe Rustan
2022-11-3
Is there a way to get just the currently selected signal line coming from/to a block? Thanks.
类别
在 帮助中心 和 File Exchange 中查找有关 Communication in Simulink 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!