image thumbnail

GREATCIRCLE and LOXODROME: "As the crow flies" and rhumb lin

version 1.4.0.0 (5.16 KB) by François Beauducel
Computes "As the crow flies" path coordinates, distance and bearing on Earth along great circle or rhumb line.

1.5K Downloads

Updated 28 May 2019

View License

The function GREATCIRCLE computes the shortest path along the great circle ("as the crow flies") between two points defined by their geographic coordinates (latitude and longitude). With one output argument it returns distance or vector of distances, with two or more output arguments it returns path coordinates and optional vector of distances and bearing angles along the path.

The function LOXODROME computes the path with a constant bearing, crossing all meridians of longitude at the same angle. It returns also a vector of distances and the bearing angle.

Loxodrome path (also known as "rhumb line") is longer than great circle one, but still used in navigation as it is easier to follow with a compass.

Type "doc greatcircle" or "doc loxodrome" for syntax, help and examples.

Cite As

François Beauducel (2021). GREATCIRCLE and LOXODROME: "As the crow flies" and rhumb lin (https://www.mathworks.com/matlabcentral/fileexchange/37652-greatcircle-and-loxodrome-as-the-crow-flies-and-rhumb-lin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: pathdist

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!