MATLAB: Is it possible to have zoom capabilities when using the GINPUT function
collection;ginputMATLABmousepointszoom
I want to use the GINPUT function with zoom capabilities.
Best Answer
The GINPUT function disables use of Zoom mode by design. As a workaround, you can use datatips, by enabling the Data Cursor Mode to obtain the location of the cursor in a plot. Datatips are available in MATLAB 7.0 (R14) and later. More information on using datatips is available by typing the following command at the MATLAB Command prompt:
You have to round the points returned fromginput to account for floating points. I would also recommend against opening a new figure on each iteration.
Best Answer