geodeticLatitudeFromParametric

Convert parametric to geodetic latitude

Description

example

phi = geodeticLatitudeFromParametric(beta,F) returns the geodetic latitude corresponding to parametric latitude beta on an ellipsoid with flattening F.

example

phi = geodeticLatitudeFromParametric(beta,F,angleUnit) specifies the units of input beta and output phi.

Examples

collapse all

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

s = wgs84Ellipsoid;

geodeticLatitudeFromParametric(45, s.Flattening)
ans =

   45.0962

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

s = wgs84Ellipsoid;

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

    1.0487

Input Arguments

collapse all

Parametric 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

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

Introduced in R2013a