https://jp.mathworks.com/help/map/ref/inputm.html
inputm - Interactively identify latitudes and longitudes on axesm-based map - MATLAB
This MATLAB function returns the latitudes and longitudes in geographic coordinates of points selected by mouse clicks on a displayed grid.
latitudes and longitudesidentify