Convert spherical distance from statute miles to radians
Convert Statute Miles to Radians on Earth
Convert 500 statute miles to radians, as measured along a great circle on the Earth. By default, the
sm2rad function assumes your input is a measurement of the Earth, which is represented as a sphere with a radius of 3958.748 statute miles.
rad = sm2rad(500)
rad = 0.1263
Convert Statute Miles to Radians on Mars
Convert 500 statute miles to radians, as measured along a great circle on Mars.
rad = sm2rad(500,'mars')
rad = 0.2374
sm — Distance in statute miles
Distance in statute miles, specified as a numeric array.
rad — Distance in radians
Distance in radians, returned as a numeric array.
Introduced in R2007a