## Documentation Center |

Convert distance from kilometers to degrees

`deg = km2deg(km)deg = km2deg(km,radius)deg = km2deg(km,`

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

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

`deg = km2deg(km,sphere)` converts
distances from kilometers to degrees, as measured along a great circle
on a sphere approximating an object in the Solar System.

Two cities are 340 km apart. How many degrees of arc is that? How many degrees would it be if the cities were on Mars?

deg = km2deg(340) deg = 3.0577 deg = km2deg(340,'mars') deg = 5.7465

`deg2km` | `deg2nm` | `deg2sm` | `degtorad` | `km2nm` | `km2rad` | `km2sm` | `nm2deg` | `nm2km` | `nm2sm` | `radtodeg` | `sm2deg` | `sm2km` | `sm2nm`

Was this topic helpful?