MATLAB: Getting the exact coordinates of some location on a map (longitude, latitude) using MATLAB

latitudelongitudemaps

I am stuck at finding the coordinates of a location on map from Google Earth, and I was told that MATLAB does very good job.
I've read about Mapping Toolbox, and I did learn the basics for showing the maps, but couldn't:
1- Import the image map in MATLAB.
2- Analyze it to get the coordinates.
What I need exactly is the coordinates of the red points in the following picture:
Is that even possible?

Best Answer

Does your image have georeferencing information associated with it? If so, pix2latlon converts pixel locations to lat/lon coordinates. Or you can manually click around on an image and get coordinates of clicks with inputm.