Mouse Position

get mouse position within an axes.

You are now following this Submission

%This function works with subplots as well as individual axes in one figure
%or multiple figure,
%it requires handle to figure object that the functionality need to be
%associated with.
%multiple figure handles can be passed to it. it then finds the axes
%automatically if there are any. it returns with no error otherwise if it
%can not find at least one axes object in a vector of figure/s supplied to
%it.
%it can be set off, if varargin{2}='' or [] or {} or 'off'.
%if nargin = 1 then it asigns the functionality with all the figure/s
%supplied to it.

Cite As

rasam aliazizi (2026). Mouse Position (https://ch.mathworks.com/matlabcentral/fileexchange/33107-mouse-position), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0