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.
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.
Find the circumference of the Earth in kilometers. By default, the deg2km function assumes your input is a measurement of the Earth, which is represented as a sphere with a radius of 6371 kilometers.
Distance in degrees, specified as a numeric array.
Data Types: single | double
Radius of sphere in units of kilometers, 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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.