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.
引用格式
Nishant Kumar (2025). Use Mouse in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/50538-use-mouse-in-matlab), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2014b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!mouse/
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |