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

1 回表示 (過去 30 日間)
Paula González Díaz
Paula González Díaz 2020 年 6 月 14 日
編集済み: Paula González Díaz 2020 年 6 月 15 日
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.

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by