deg2nm

Convert distance from degrees to nautical miles

Syntax

nm = deg2nm(deg)
nm = deg2nm(deg,radius)
nm = deg2nm(deg,sphere)

Description

nm = deg2nm(deg) converts distances from degrees to nautical miles, as measured along a great circle on a sphere with a radius of 6371 km, the mean radius of the Earth.

nm = deg2nm(deg,radius) converts distances from degrees to nautical miles, as measured along a great circle on a sphere having the specified radius. radius must be in units of nautical miles.

nm = deg2nm(deg,sphere) converts distances from degrees to nautical miles, as measured along a great circle on a sphere approximating an object in the Solar System. sphere may be one of the following strings: 'sun', 'moon', 'mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'pluto', and is case-insensitive.

Examples

A degree of arc length is about 60 nautical miles:

deg2nm(1)

ans =
   60.0405

This is not true on Mercury, of course:

deg2nm(1,'mercury')

ans =
   22.9852

See Also

| | |

Was this topic helpful?