how to visually pick graphic objects

2 ビュー (過去 30 日間)
Itzik Ben Shabat
Itzik Ben Shabat 2014 年 1 月 13 日
コメント済み: Itzik Ben Shabat 2014 年 1 月 13 日
Hi, I defined a 3d "world" in matlab (axes). within this "world" i draw a few graphic objects (cubes and spheres using patch and surf commands). i wish to pick one of these object handles by simply clicking on them in the figure. (after the click i want to get the graphic handle of the object thats under the cursor)
is this possible? and if so, how?

回答 (1 件)

Ben
Ben 2014 年 1 月 13 日
編集済み: Ben 2014 年 1 月 13 日
It's easiest if you can create a handle during plotting, eg
h = plot(_)
You can also modify objects after clicking the icon at the very right of the toolbar. You can then use the object properties box to edit. Not sure if this covers your question?
  1 件のコメント
Itzik Ben Shabat
Itzik Ben Shabat 2014 年 1 月 13 日
not sure either. i dont wish to edit yet, just get the handle of the object. i know i can save it but i want to pick it. is that possible/.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by