⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 llh2ecef.m

📁 GPSINS组合定位的MATLAB程序,GPS/INS组合的MATLAB程序
💻 M
字号:
function [X,Y,Z]=llh2ecef(lat,long,alt)%   This function will convert latitude, longitude, and % altitude.  Lat and long are in degrees with -lat=south% of equator; -long=west of PM; altitude is % in meters.  Return on this function is X,Y,Z in ECEF % coordinates.  The dimentions are in meters.  Based on WGS-84% lat/long informtion.% [X,Y,Z]=llh2ecef(lat,long,alt)a=6378137.0; %mb=6356752.3142; %mf=(a-b)/a;e=sqrt(2*f-f^2);N=a/sqrt(1-e^2*sin(lat*pi/180)^2);Z=(N*(1-e^2)+alt)*sin(lat*pi/180);X=(N+alt)*cos(lat*pi/180)*cos(long*pi/180);Y=(N+alt)*cos(lat*pi/180)*sin(long*pi/180);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -