MATLAB Answers

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

4 views (last 30 days)
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.

  0 Comments

Sign in to comment.

Accepted Answer

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

More Answers (0)

Products


Release

R2020a