Mapping Toolbox    
nm2deg, nm2km, nm2rad, nm2sm

Convert distance from nautical miles to other units

Syntax

Description

distout = nm2deg(distin) converts the input distance given in nautical miles to degrees. In addition, distout = nm2km(distin), distout = nm2rad(distin) and distout = nm2sm(distin) perform analogously, converting to kilometers, radians, and statute miles, respectively.

distout = nm2deg(distin,radius)and distout = nm2rad(distin,radius) specify the radius of the sphere to use, since a degree (or radian) of arc length covers less distance, for example, on Mars than it does on the Earth. You can enter the radius as a number in nautical miles, as a call to the almanac function (e.g., almanac('mars','radius','nm')), or you can pass in a string planet name (e.g., 'mars'), and the function will make the appropriate call to the almanac function. The radius of the Earth is the default.

Examples

How fast is 30 knots (nautical miles per hour) in kph?

See Also
distdim
Convert distances between different units
km2sm
sm2deg
Other direct distance conversion functions


  newpole northarrow