Simulink. Is it possible to get the area's position by programming?

1 visualizzazione (ultimi 30 giorni)
Hi,
I would like to get the coordinates of a Simulink area element with Matlab programmig in the same way I can get it for subsystems (get_param(gcb, 'position') but since the area elements are format elements I don`t know if is it possible.
Thank you.

Risposta accettata

Mark McBroom
Mark McBroom il 15 Giu 2020
handle = find_system(gcs, 'FindAll', 'on', 'type', 'annotation', 'AnnotationType', 'area_annotation', 'selected', 'on')
get_param(handle,'Position')

Più risposte (0)

Categorie

Scopri di più su Create Large-Scale Model Components in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by