How do I obtain the coordinates of the mouse on the screen displayed somewhere in my figure window?
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
This enhancement has been incorporated in MATLAB 7.5 (R2007b).
As a workaround in previous MATLAB releases, you can use the following MATLAB function to track mouse motion:
function mousetrk %MOUSETRK function to track mouse motion % This function creates two static text controls % which contain the x & y coordinates of the mouse % The driving callback is executed by the % WindowButtonMotionFcn of the figure. figure axes('Visible','off') xbox = uicontrol('Style','te
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment