| Aerospace Blockset™ | ![]() |
Convert geodetic latitude and longitude to direction cosine matrix
Utilities/Axes Transformations

The Direction Cosine Matrix ECEF to NED block converts
geodetic latitude and longitude into a 3-by-3 direction cosine matrix
(DCM). The DCM matrix performs the coordinate transformation of a
vector in Earth-centered Earth-fixed (ECEF) axes
into
a vector in north-east-down (NED) axes
. The order of the
axis rotations required to bring this about is:
A rotation about oz0 through
the longitude
to axes
![]()
A rotation about oy1 through
the geodetic latitude
to axes
![]()


Combining the two axis transformation matrices defines the following DCM.


| Input | Dimension Type | Description |
|---|---|---|
First | 2-by-1 vector | Contains the geodetic latitude and longitude, in degrees. |
| Output | Dimension Type | Description |
|---|---|---|
First | 3-by-3 direction cosine matrix | Transforms ECEF vectors to NED vectors. |
The implementation of the ECEF coordinate system assumes that the origin is at the center of the planet, the x-axis intersects the Greenwich meridian and the equator, the z-axis is the mean spin axis of the planet, positive to the north, and the y-axis completes the right-hand system.
Stevens, B. L., and F. L. Lewis, Aircraft Control and Simulation, John Wiley & Sons, New York, 1992.
Zipfel, P. H., Modeling and Simulation of Aerospace Vehicle Dynamics, AIAA Education Series, Reston, Virginia, 2000.
"Atmospheric and Space Flight Vehicle Coordinate Systems," ANSI/AIAA R-004-1992.
Direction Cosine Matrix ECEF to NED to Latitude and Longitude
Direction Cosine Matrix to Rotation Angles
Direction Cosine Matrix to Wind Angles
Rotation Angles to Direction Cosine Matrix
Wind Angles to Direction Cosine Matrix
![]() | Direction Cosine Matrix Body to Wind to Alpha and Beta | Direction Cosine Matrix ECEF to NED to Latitude and Longitude | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |