Get image mouse click position in App Designer

19 Ansichten (letzte 30 Tage)
Tony Marino
Tony Marino am 25 Jun. 2021
Kommentiert: Tony Marino am 6 Jul. 2021
Hello,
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.

Akzeptierte Antwort

Swetha Polemoni
Swetha Polemoni am 2 Jul. 2021

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by