wgs84Ellipsoid

Reference ellipsoid for World Geodetic System 1984

Syntax

E = wgs84Ellipsoid
E = wgs84Ellipsoid(lengthUnit)

Description

E = wgs84Ellipsoid returns a referenceEllipsoid object representing the World Geodetic System of 1984 (WGS 84) reference ellipsoid. The semimajor axis and semiminor axis are expressed in meters.

E = wgs84Ellipsoid(lengthUnit) returns a WGS 84 reference ellipsoid object in which the semimajor axis and semiminor axis are expressed in the specified unit, lengthUnit.

Input Arguments

collapse all

Unit of measure, specified as a string scalar or character vector. You can specify any length unit accepted by the validateLengthUnit function.

Data Types: char | string

Output Arguments

collapse all

WGS84 reference ellipsoid, returned as a referenceEllipsoid object.

Examples

collapse all

Create a World Geodetic System of 1984 (wgs84) reference ellipsoid and view one of its derived properties.

wgs84InMeters = wgs84Ellipsoid
wgs84InMeters = 

referenceEllipsoid with defining properties:

                 Code: 7030
                 Name: 'World Geodetic System 1984'
           LengthUnit: 'meter'
        SemimajorAxis: 6378137
        SemiminorAxis: 6356752.31424518
    InverseFlattening: 298.257223563
         Eccentricity: 0.0818191908426215

  and additional properties:

    Flattening
    ThirdFlattening
    MeanRadius
    SurfaceArea
    Volume

View value of SurfaceArea property.

wgs84InMeters.SurfaceArea
ans =

   5.1007e+14

Create a World Geodetic System of 1984 (wgs84) reference ellipsoid, specifying the unit of measure. In the summary information returned, note the value of the LengthUnit field.

wgs84InKilometers = wgs84Ellipsoid('km')
wgs84InKilometers = 

referenceEllipsoid with defining properties:

                 Code: 7030
                 Name: 'World Geodetic System 1984'
           LengthUnit: 'kilometer'
        SemimajorAxis: 6378.137
        SemiminorAxis: 6356.75231424518
    InverseFlattening: 298.257223563
         Eccentricity: 0.0818191908426215

  and additional properties:

    Flattening
    ThirdFlattening
    MeanRadius
    SurfaceArea
    Volume
Introduced in R2012a