Main Content

km2nm

Convert kilometers to nautical miles

Description

nm = km2nm(km) converts distances from kilometers to nautical miles.

example

Examples

collapse all

Convert 500 kilometers to nautical miles.

nm = km2nm(500)
nm = 
269.9784

Input Arguments

collapse all

Distance in kilometers, specified as a numeric array.

Output Arguments

collapse all

Distance in nautical miles, returned as a numeric array of the same size as km.

Version History

Introduced in R2007a

See Also

Functions