GTRACK

版本 1.0.0.0 (2.8 KB) 作者: Jose Pina
Track mouse position and show coordinates in figure title.
6.2K 次下载
更新时间 2007/6/1

查看许可证

编者注: This was a File Exchange Pick of the Week

GTRACK Track mouse position and show coordinates in figure title.

Once GTRACK is active the mouse position is constantly tracked and printed on the current figure title. A left-click will print the coordinates in the command line and store them. Clicking the mouse right button deactivates GTRACK.

USAGE
gtrack() tracks the mouse and prints coordinates in the command line.

clickData = gtrack() will return the click positions in clickData using UIWAIT. Matlab will be in wait mode until the user finishes clicking.

gtrack('newVar') tracks the mouse and creates a new variable in the base workspace called 'newVar' with the click coordinates. This mode does not use UIWAIT.

gtrack([],titleFormat) uses titleFormat as the format string for printing the mouse coordinates in the title.

引用格式

Jose Pina (2024). GTRACK (https://www.mathworks.com/matlabcentral/fileexchange/15099-gtrack), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Visual Exploration 的更多信息
致谢

参考作品: MATLAB Plot Tracing Utility

启发作品: Mouse Activity Tracking

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Introduced format string for printing the mouse coordinates in the title.