Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

rad2sm

Convert spherical distance from radians to statute miles

Syntax

sm = rad2sm(rad)
sm = rad2sm(rad,radius)
sm = rad2sm(rad,sphere)

Description

sm = rad2sm(rad) converts distances from radians 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 = rad2sm(rad,radius) converts distances from radians 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 = rad2sm(rad,sphere) converts distances from radians 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: 'sun', 'moon', 'mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'pluto', and is case-insensitive.

Examples

How long is a trip around the equator in statute miles?

sm = rad2sm(2*pi)

sm =
   2.4874e+04

How about on Jupiter?

sm = rad2sm(2*pi,'jupiter')

sm =
   2.7283e+005

Introduced in R2007a

Was this topic helpful?