Calculate distance between two points on earth's surface given by their latitude-longitude pair. Choose method 1 or 2. Method 1 uses plane approximation, only for points within several tens of kilometers; Method 2 calculates sphereic geodesic distance for points farther apart, but ignores flattening of the earth. Output is in km.
Langqiu Sun (2023). pos2dist (https://www.mathworks.com/matlabcentral/fileexchange/5256-pos2dist), MATLAB Central File Exchange. 检索来源 .
平台兼容性Windows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!