Main Content

geodeticLatitudeFromGeocentric

Convert geocentric to geodetic latitude

Description

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

example

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

Examples

collapse all

Create a reference ellipsoid.

s = wgs84Ellipsoid;

Convert the geocentric latitude to geodetic latitude. The reference ellipsoid contains a flattening factor.

geodeticLatitudeFromGeocentric(45, s.Flattening)
ans = 
45.1924

Create a reference ellipsoid.

s = wgs84Ellipsoid;

Convert a geocentric latitude expressed in radians to geodetic latitude. The reference ellipsoid contains a flattening factor.

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

Input 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.

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

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.

Version History

Introduced in R2013a