Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid
No License
Vector and matrix inputs are permitted, and forward and backward azimuth calculations are optionally output.
Description: In 1975, Vincenty published a rapidly converging algorithm for computing the distance between points on an ellipsoidal earth. The algorithm is precise to within a few millimeters. Since then, his algorithm has since seen significant implementation in geodesy and engineering. After adjusting the algorithm to converge in all cases (the original suffers from convergence failure in a few outlying cases), resolving the azimuth quadrant ambiguity present in the original, and vectorizing, I have provided it here in MATLAB form. The function itself does not require the Mapping Toolbox, but I have provided comparisons to that Toolbox in the "help" comments. This function will provide rapid, extremely precise results. Please see code comments for references.
To the many users who downloaded an earlier implemetation of this algorithm, without vectorized code and without azimuth calculations: thank you for your comments, and for your patience.
Michael Kleder, Sep 2005
Cite As
Michael Kleder (2024). Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid (https://www.mathworks.com/matlabcentral/fileexchange/8607-vectorized-geodetic-distance-and-azimuth-on-the-wgs84-earth-ellipsoid), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy >
- Radar > Mapping Toolbox > Geometric Geodesy >
- Sciences > Geoscience >
- Sciences > Geoscience > Geodesy and Mapping >
Tags
Acknowledgements
Inspired: VDISTINV: Find the endpoint of a geodesic on the ellipsoidal earth, VRECKON: Find the endpoint of a geodesic on the ellipsoidal earth, pathdist, dist_from_coast.zip, demViewer
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | typographical corrections |