flat2lla
Convert from flat Earth position to array of geodetic coordinates
Syntax
Description
estimates an array of geodetic coordinates, lla
= flat2lla(flatearth_pos
,llo
,psio
,href
)lla
, from an array of flat
Earth coordinates, flatearth_pos
. This function estimates the
lla
value with respect to a reference location that you define with
llo
, psio
, and href
.
estimates the coordinates for a specific ellipsoid planet.lla
= flat2lla(___, ellipsoidModel
)
estimates the coordinates for a custom ellipsoid planet defined by
lla
= flat2lla(___,flattening
,equatorialRadius
)flattening
and equatorialRadius
.
Examples
Input Arguments
Output Arguments
Algorithms
The estimation begins by transforming the flat Earth x and y coordinates to north and east coordinates. The transformation has the form of
where is the angle in degrees clockwise between the x-axis and north.
To convert the north and east coordinates to geodetic latitude and longitude, the estimation uses the radius of the curvature in the prime vertical (RN) and the radius of the curvature in the meridian (RM). (RN) and (RM) are defined by the following relationships:
and
where (R) is the equatorial radius of the planet and is the flattening of the planet.
Small changes in the latitude and longitude are approximated from small changes in the North and East positions by
The output latitude and longitude are the initial latitude and longitude plus the small changes in latitude and longitude.
The altitude is the negative flat Earth z-axis value minus the reference height (href).
References
[1] Etkin, B., Dynamics of Atmospheric Flight. New York: John Wiley & Sons, 1972.
[2] Stevens, B. L., and F. L. Lewis, Aircraft Control and Simulation, 2nd ed. New York: John Wiley & Sons, 2003.
Version History
Introduced in R2011a