필터 지우기
필터 지우기

How to register where the mouse button is pressed?

조회 수: 2 (최근 30일)
Teemu
Teemu 2013년 2월 21일
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