dcmecef2ned
Convert geodetic latitude and longitude to direction cosine matrix
Description
Examples
Determine Direction Cosine Matrix from Geodetic Latitude and Longitude
Determine the direction cosine matrix from the geodetic latitude and longitude.
lat = 45; lon = -122; dcm = dcmecef2ned(lat, lon)
dcm = 3×3
0.3747 0.5997 0.7071
0.8480 -0.5299 0
0.3747 0.5997 -0.7071
Determine Direction Cosine Matrix from Multiple Geodetic Latitudes and Longitudes
Determine the direction cosine matrix from multiple geodetic latitudes and longitudes.
lat = [45 37.5]; lon = [-122 -85]; dcm = dcmecef2ned(lat, lon)
dcm = dcm(:,:,1) = 0.3747 0.5997 0.7071 0.8480 -0.5299 0 0.3747 0.5997 -0.7071 dcm(:,:,2) = -0.0531 0.6064 0.7934 0.9962 0.0872 0 -0.0691 0.7903 -0.6088
Input Arguments
lat
— Geodetic latitude
M array
Geodetic latitude, specified as an M array in degrees. Latitude values can be any value. However, latitude values of +90 and -90 may return unexpected values because of singularity at the poles.
Data Types: double
lon
— Geodetic longitude
M array
Geodetic longitude, specified as a M array in degrees. Longitude values can be any value.
Data Types: double
Output Arguments
dcm
— Direction cosine matrix
3-by-3-by-M matrix
Direction cosine matrix, returned as a 3-by-3-by-M matrix, where
M is the number of orthogonal direction cosine matrices.
dcm
performs the coordinate transformation of a vector in
Earth-centered Earth-fixed (ECEF) axes into a vector in North-East-down (NED) axes.
Version History
Introduced in R2006b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)