GTRACK
by Jose Pina
24 May 2007
(Updated 01 Jun 2007)
Track mouse position and show coordinates in figure title.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
MATLAB Plot Tracing Utility
This submission has inspired the following:
Mouse Activity Tracking
|
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 29 May 2007 |
John D'Errico
|
|
|
| 30 May 2007 |
José Pina
|
|
|
| 30 May 2007 |
John D'Errico
|
|
|
| 12 Jul 2007 |
Tom Pilutti
|
|
|
| 12 Jul 2007 |
José Pina
|
|
|
| 18 Oct 2007 |
Wendy Luo
|
|
|
| 22 Sep 2008 |
ShyamSundar Baidya
|
|
|
| 29 Oct 2008 |
Furi Andi Karnapi
|
|
|
| 07 Nov 2008 |
Tom Richardson
|
|
|
| 17 Jul 2009 |
PopV Visitkul
|
|
|
| 05 Nov 2010 |
Conrad
|
|
|
| 29 Jul 2011 |
Anthony Santago
|
|
|
| Updates |
| 30 May 2007 |
Improved version (thanks for the hints to John D'Errico) |
| 31 May 2007 |
Minor documentation correction. |
| 01 Jun 2007 |
Introduced format string for printing the mouse coordinates in the title. |
|
Contact us at files@mathworks.com