focus a block in model by m file

5 Ansichten (letzte 30 Tage)
kei hin
kei hin am 25 Okt. 2021
Bearbeitet: kei hin am 24 Mai 2023
when I select a block in model, there is a blue outer frame on the block, but when I use 'hilite_system' in m file to focus a block, the background color yellow will showed, so I can not see the real color of block directly. So I want to focus block by that blue frame by m file, how?

Akzeptierte Antwort

kei hin
kei hin am 25 Okt. 2021
Bearbeitet: kei hin am 25 Okt. 2021
set(block_handle,'selected', 'on');
or
set(get_param(block_path,'handle'), 'selected', 'on');

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by