parametricLatitude

Convert geodetic to parametric latitude

Syntax

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

Description

example

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

example

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

Examples

expand all

Convert Geodetic Latitude to Parametric Latitude

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

s = wgs84Ellipsoid;

parametricLatitude(45, s.Flattening)
ans =

   44.9038

Convert Geodetic Latitude Expressed in Radians to Parametric 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;

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

    1.0457

Input Arguments

expand all

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

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

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

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

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

Was this topic helpful?