Use Mouse in MATLAB

Access Mouse from MATLAB
250 Downloads
Updated 17 Apr 2015

View License

there are four function related to mouse,
"getmouse" returns coordinate of mouse pointer, lower left corner is(1,1) and upper right corner is equal to the screen size.
ex.
m=getmouse;
you can also send pointer to a specific location by using "setmouse" function;
ex.
setmouse(100,100);
"leftclick", and "rigthclick" functions are self explanatory.

Cite As

Nishant Kumar (2024). Use Mouse in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/50538-use-mouse-in-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on App Building in Help Center and MATLAB Answers
Tags Add Tags

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