earthRadius
Mean radius of planet Earth
Description
returns the scalar value
6,371,000, the mean radius of the Earth in meters.R
= earthRadius
returns the mean radius of the Earth using the length unit specified by
R
= earthRadius(lengthUnit
)lengthUnit
.
Examples
Earth Radius in Meters
View the mean radius of the Earth using the default units, meters.
earthRadius
ans = 6371000
Earth Radius in Specified Units
View the mean radius of the Earth, specifying the units as kilometers.
earthRadius("km")
ans = 6371
Input Arguments
lengthUnit
— Length unit of measure
'meter'
(default) | string scalar | character vector
Length unit of measure, specified as a string scalar or character vector. You can
specify any length unit accepted by the validateLengthUnit
function.
Value | Unit Name |
---|---|
"m" , "meter" ,
"meters" , "metre" ,
"metres" | Meters |
"cm" , "centimeter" ,
"centimeters" , "centimetre" ,
"centimetres" | Centimeters |
"mm" , "millimeter" ,
"millimeters" , "millimetre" ,
"millimetres" | Millimeters |
"micron" , "microns" | Microns |
"km" , "kilometer" ,
"kilometers" , "kilometre" ,
"kilometers" | Kilometers |
"nm" , "naut mi" , "nautical
mile" , "nautical miles" | Nautical miles |
"ft" , "international ft" ,
"foot" , "international foot" ,
"feet" , "international feet" | Feet |
"in" , "inch" ,
"inches" | Inches |
"yd" , "yds" , "yard" ,
"yards" | Yards |
"mi" , "mile" ,
"miles" , "international mile" ,
"international miles" | Miles |
"sf" , "survey ft" , "US survey
ft" , "U.S. survey ft" , "survey
foot" , "US survey foot" , "U.S. survey
foot" , "survey feet" , "US survey
feet" , "U.S. survey feet" | U.S. survey feet |
"sm" , "survey mile" , "survey
miles" , "statute mile" , "statute
miles" , "US survey mile" , "US survey
miles" , "U.S. survey mile(s)" , "U.S.
survey miles" | U.S. survey miles (statute miles) |
"Clarke's foot" , "Clarkes foot" | Clarke's feet |
"German legal metre" , "German legal
meter" | German legal metres |
"Indian foot" | Indian feet |
Data Types: char
| string
Version History
Introduced in R2010b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)