Convert spherical distance from degrees to statute miles
Convert Degrees to Statute Miles on Earth
Find the circumference of the Earth in statute miles. By default, the
deg2sm function assumes your input is a measurement of the Earth, which is represented as a sphere with a radius of 3958.748 statute miles.
sm = deg2sm(360)
sm = 2.4874e+04
Convert Degrees to Statute Miles on Mars
Find the circumference of Mars in statute miles.
sm = deg2sm(360,'mars')
sm = 1.3235e+04
deg — Distance in degrees
Distance in degrees, specified as a numeric array.
sm — Distance in statute miles
Distance in statute miles, returned as a numeric array.
Introduced in R2007a