Main Content

geocentricLatitude

Convert geodetic to geocentric latitude

Description

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.

example

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: single | 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.

Version History

Introduced in R2013a