Documentation Center

  • Trial Software
  • Product Updates

geodeticLatitudeFromGeocentric

Convert geocentric to geodetic latitude

Syntax

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

Description

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

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

Examples

expand all

Convert Geocentric Latitude to Geodetic Latitude

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

s = wgs84Ellipsoid;

geodeticLatitudeFromGeocentric(45, s.Flattening)
ans =

   45.1924

Convert Geocentric Latitude Expressed in Radians to Geodetic Latitude

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

s = wgs84Ellipsoid;

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

     1.0501

Input Arguments

expand all

psi — Geocentric latitude 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.

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

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

Geodetic latitude of one or more points, returned 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.

See Also

| | | | |

Was this topic helpful?