interact/Click on a draggable line/rectangle to open a menu ?

1 次查看(过去 30 天)
Hello. after drawing a line or a rectangle interactively using "drawline" and drawrectange" in a GUI axes, what I want now is that when I click on the line/rectangle, a menu (or another GUI) will open ? can you please help me with this?
after searching , I found "UIContextMenu" and 'ButtonDownFcn' , but I didnt succeed to implement them
thank you
Mohamad

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by