|
|
| 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
|
| 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 (10) |
| 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
|
|
|
| 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. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com