Matlab Simulink how to select elements by matlab script

1 view (last 30 days)
Hello,
for code testing, I'd like to select elements of a matlab simulink model by matlab code.
I'd expect to get the (line) handle of the selected simulink item returned AFTER selecting the elements by script.
% * code to select constant1 block *
handle_of_constant1 = find_system(bdroot,'FindAll','on','Selected','on');
Thank you in advance!

Answers (0)

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!