Documentation

This is machine translation

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

deg2km

Convert spherical distance from degrees to kilometers

Syntax

km = deg2km(deg)
km = deg2km(deg,radius)
km = deg2km(deg,sphere)

Description

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

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

km = deg2km(deg,sphere) converts distances from degrees to kilometers, 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.

See Also

| | | |

Introduced in R2007a

Was this topic helpful?