Documentation Center

  • 評価版
  • 製品アップデート

geocentricLatitude

Convert geodetic to geocentric latitude

Syntax

  • psi = geocentricLatitude(phi,F)
  • psi = geocentricLatitude(phi,F,angleUnit)

Description

psi = geocentricLatitude(phi,F) returns the geocentric latitude corresponding to geodetic latitude phi on an ellipsoid with flattening F.

psi = geocentricLatitude(phi,F,angleUnit) specifies the units of input phi and output psi.

Examples

expand all

Convert Geodetic Latitude to Geocentric Latitude

Create a reference ellipsoid and then convert the geodetic latitude to geocentric latitude. The reference ellipsoid contains a flattening factor.

s = wgs84Ellipsoid;

geocentricLatitude(45, s.Flattening)
ans =

   44.8076

Convert Geodetic Latitude Expressed in Radians to Geocentric Latitude

Create a reference ellipsoid and then convert a geodetic latitude expressed in radians to geocentric latitude. The reference ellipsoid contains a flattening factor.

s = wgs84Ellipsoid;

geocentricLatitude(pi/3, s.Flattening, 'radians')
ans =

    1.0443

Input Arguments

expand all

phi — Geodetic latitude of one or more pointsscalar value, vector, matrix, or N-D array

Geodetic latitude of one or more points, specified as a scalar value, vector, matrix, or N-D array. Values must be in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

Data Types: single | double

F — Flattening of reference spheroidscalar

Flattening of reference spheroid, specified as a scalar value.

Data Types: double

angleUnit — Unit of measurement for angle‘degrees' (default) | ‘radians'

Unit of measurement for angle, specified as the text string ‘degrees' or ‘radians'.

Data Types: char

Output Arguments

expand all

psi — Geocentric latitudes of one or more pointsscalar value, vector, matrix, or N-D array

Geocentric latitudes of one or more points, returned as a scalar value, vector, matrix, or N-D array. Values are in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

See Also

| | | | |

Was this topic helpful?