I've been googling for a while to find a solution to this apparently simple problem: getting mouse coordinates in image axes while the mouse is moving (without clicking).
I've found that
impixelinfoval
does exactly this but I'm not able to extract the pixel coordinates from thisuicontrol
in the script (are they stored in some field?).I've also found that
ginput
gives you the coordinates but only if you click.
Do you know any workaround for one of these two issues?
Are you aware of any solution to accomplish this using MATLAB functions?