Get image mouse click position in App Designer
조회 수: 48(최근 30일)
표시 이전 댓글
Tony Marino 2021년 6월 25일
댓글: Tony Marino 2021년 7월 6일
I'm trying to create an app in App Designer where I display an image on a UIAxes and then capture the position of the mouse when a user clicks on that image and then display the captured mouse position in an edit field. I have created a ButtonDownFcn associated with the image but when I click on the image I get:
Undefined function 'im_ButtonDownFcn' for input arguments of type 'matlab.graphics.primitive.Image'.
Error while evaluating Image ButtonDownFcn.
My code is attached, any help would be much appreciated.
댓글 수: 0
Swetha Polemoni 2021년 7월 2일
The following answer might help you.
댓글 수: 1
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!