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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
mouse/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |