Main Content

sm2deg

Convert spherical distance from statute miles to degrees

Description

example

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

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

example

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

Examples

collapse all

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

deg = sm2deg(500)
deg = 7.2366

Convert 500 statute miles to degrees, as measured along a great circle on Mars.

deg = sm2deg(500,'mars')
deg = 13.6001

Input Arguments

collapse all

Distance in statute miles, specified as a numeric array.

Data Types: single | double

Radius of sphere in units of statute 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