How to register where the mouse button is pressed?

2 次查看(过去 30 天)
Hi! I have picture and I want to know where the mouse button is pressed. For example in picture there are some objects and I want to know if I press a button on the object. How can I do it? I appreciate your help.

采纳的回答

Sean de Wolski
Sean de Wolski 2013-2-21
Set The object's ButtonDownFcn to register the event and get the axes' 'CurrentPoint' if you need more information about where. I recommend getting started here:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by