Documentation Center

  • Trial Software
  • Product Updates

deg2sm

Convert distance from degrees to statute miles

Syntax

sm = deg2sm(deg)
sm = deg2sm(deg,radius)
sm = deg2sm(deg,sphere)

Description

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

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

sm = deg2sm(deg,sphere) converts distances from degrees to statute miles, as measured along a great circle on a sphere approximating an object in the Solar System. sphere may be one of the following strings: 'sun', 'moon', 'mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'pluto', and is case-insensitive.

See Also

| | |

Was this topic helpful?