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:
web([docroot,'/techdoc/creating_plots/data_ex4.html'])