Get image mouse click position in App Designer

20 visualizaciones (últimos 30 días)
Tony Marino
Tony Marino el 25 de Jun. de 2021
Comentada: Tony Marino el 6 de Jul. de 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.

Respuesta aceptada

Swetha Polemoni
Swetha Polemoni el 2 de Jul. de 2021

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by