Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

deg2nm

Convert spherical 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 values: '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

| | |

Introduced in R2007a

Was this topic helpful?