Latitudes and longitudes of mouse-click locations
[lat, lon] = inputm
[lat, lon] = inputm(n)
[lat, lon] = inputm(n,h)
[lat, lon, button] = inputm(n)
MAT = imputm(...)
[lat, lon] = inputm returns the latitudes and longitudes in geographic coordinates of points selected by mouse clicks on a displayed grid. The point selection continues until the return key is pressed.
[lat, lon, button] = inputm(n) returns a third result, button, that contains a vector of integers specifying which mouse button was used (1,2,3 from left) or ASCII numbers if a key on the keyboard was used.
inputm works much like the standard MATLAB® ginput, except that the returned values are latitudes and longitudes extracted from the projection, rather than axes x-y coordinates. If you click outside of the projection bounds (beyond the map frame in the corners of a Robinson projection, for example), no coordinates are returned for that location.
inputm cannot be used with a 3-D display, including those created using globe.