Documentation Center

  • Trial Software
  • Product Updates

geodeticLatitudeFromParametric

Convert parametric to geodetic latitude

Syntax

  • phi = geodeticLatitudeFromParametric(beta,F) example
  • phi = geodeticLatitudeFromParametric(beta,F,angleUnit) example

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

expand all

Convert Parametric Latitude to Geodetic Latitude

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

Convert Parametric Latitude Expressed in Radians to Geodetic Latitude

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

expand all

beta — Parametric latitude of one or more pointsscalar value, vector, matrix, or N-D array

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

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 latitudes of one or more pointsscalar value, vector, matrix, or N-D array

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.

See Also

| | | | |

Was this topic helpful?