Geodetic distance on WGS84 earth ellipsoid
by Michael Kleder
30 Jun 2004
(Updated 01 Sep 2004)
Rapidly computes the geodetic distance between coordinates on the ellipsoidal earth.
|
Watch this File
|
| File Information |
| 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), I have provided it here in MATLAB form. The function itself does not require the Mapping Toolbox, but I have included a (commented-out) code section following the body of the function, which you can use if you have the Mapping Toolbox to compare the accuracy of this algorithm to spherical earth distances. Note that in that toolbox, the Mathworks uses a fast but somewhat less precise method for computing geodetic distances on an ellipsoid. This function will provide rapid, extremely precise results. Please see code comments for references. |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (13) |
| 05 Jul 2004 |
Fahad Al Mahmood
|
|
|
| 06 Jul 2004 |
Ashish Misra
|
|
|
| 15 Jul 2005 |
Gabor Vali
|
|
|
| 22 Sep 2005 |
Gerald Dalley
|
|
|
| 03 Oct 2005 |
Michael Kleder
|
|
|
| 25 Oct 2005 |
Tro Han
|
|
|
| 31 Oct 2005 |
The Author
|
|
|
| 29 Mar 2006 |
Frederic B.
|
|
|
| 17 Jan 2007 |
Chuck B
|
|
|
| 04 Nov 2007 |
Michael Draugelis
|
|
|
| 19 Nov 2007 |
xzn dasds
|
|
|
| 06 Mar 2008 |
Goran Nystrom
|
|
|
| 30 Apr 2008 |
catur anindhito
|
|
|
| Updates |
| 01 Sep 2004 |
Minor typographical corrections. |
|
Contact us at files@mathworks.com