I have the latitude and longitude of two points on the surface of a sphere, A(lat1, lon1) and B (lat2, lon2). I also have a matrix V containing 10,000+ other points on the sphere (lat and long). I am interested in finding the point that is closest to the great circle line AB. Is there anything in the Mapping Toolbox or general MATLAB that computes the great circle distance between each of the points in V and the line AB?
MATLAB: How to calculate the distance from a point to a line on a sphere in MATLAB
andbetweencircledistancegreatlineMapping ToolboxMATLABpoints
Best Answer