Mouse Position

get mouse position within an axes.
766 Downloads
Updated 3 Oct 2011

View License

%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 (2024). Mouse Position (https://www.mathworks.com/matlabcentral/fileexchange/33107-mouse-position), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Specifying Target for Graphics Output in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0