Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

read mouse buttons without locking the code

1 visualización (últimos 30 días)
R P
R P el 15 de Feb. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I need to present diffent images while monitoring mouse actions.
The ginput function seem adequate for me, however, it is not possible to execute other commands while ginput is turned on. Is it possible to run these actions in parallel?
Another posibility could be to alternate rapidly between graphic functions and ginput, but it would be necessary to turn ginput off after a time period...
does anyone have a suggestion?
thanks rp

Respuestas (1)

Sean de Wolski
Sean de Wolski el 22 de Feb. de 2012
Use the currentpoint property of an axes or figure instead of ginput. ginput is just a fancy wrapper around this anyway.
docsearch axes properties

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by