Documentation

This is machine translation

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

geocentricLatitude

Convert geodetic to geocentric latitude

Syntax

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

Description

example

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

example

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

Examples

collapse all

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

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

collapse all

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

Flattening of reference spheroid, specified as a scalar value.

Data Types: double

Unit of measurement for angle, specified as either ‘degrees' or ‘radians'.

Data Types: char

Output Arguments

collapse all

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.

Was this topic helpful?