Publisher review:Trace the Position of Cursor without Click works like GINPUT provided by MATLAB,but traces the position of cursor without click function [x,y]=gpos(h_axes)%GPOS Get current position of cusor and return its coordinates in axes with handle h_axes% h_axes - handle of specified axes% [x,y] - cursor coordinates in axes h_aexs%% -------------------------------------------------------------------------% Note:% 1. This function should be called in the figure callback WindowButtonMotionFcn.% 2. It works like GINPUT provided by Matlab,but it traces the position% of cursor without click and is designed for 2-D axes.% 3. It can also work even the units of figure and axes are inconsistent,% or the direction of axes is reversed.% ------------------------------------------------------------------------- Requirements: ยท MATLAB Release: R13
Trace the Position of Cursor without Click is a Matlab script for Development Tools scripts design by Kang Zhao.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris