Main Content

nm2deg

Convert spherical distance from nautical miles to degrees

Description

example

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

example

deg = nm2deg(nm,radius) converts distances from nautical miles to degrees, as measured along a great circle on a sphere having the specified radius.

deg = nm2deg(nm,sphere) converts distances from nautical miles to degrees, as measured along a great circle on a sphere approximating an object in the Solar System.

Examples

collapse all

Convert 500 nautical miles to degrees, as measured along a great circle on the Earth. By default, the nm2deg function assumes your input is a measurement of the Earth, which is represented as a sphere with a radius of 3440.065 nautical miles.

deg = nm2deg(500)
deg = 8.3277

Convert 500 nautical miles to degrees, as measured along a great circle on a sphere with a radius of 3432 nautical miles.

deg = nm2deg(500,3432)
deg = 8.3473

Input Arguments

collapse all

Distance in nautical miles, specified as a numeric array.

Data Types: single | double

Radius of sphere in units of nautical miles, specified as a numeric scalar.

Sphere approximating an object in the Solar System, specified as one of the following values: 'sun', 'moon', 'mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'pluto'. The value of sphere is case-insensitive.

Output Arguments

collapse all

Distance in degrees, returned as a numeric array.

Data Types: single | double

Version History

Introduced in R2007a