ell2xyz.m

来自「gps matlab 仿真程序(A collection of geodetic」· M 代码 · 共 18 行

M
18
字号
function [x,y,z]=ell2xyz(lat,lon,h,a,e2)% ELL2XYZ  Converts ellipsoidal coordinates to cartesian.%   Vectorized.% Version: 18 Jan 96% Useage:  [x,y,z]=ell2xyz(lat,lon,h,a,e2)% Input:   lat - vector of ellipsoidal latitudes (radians)%          lon - vector of ellipsoidal E longitudes (radians)%          h   - vector of ellipsoidal heights (m)%          a   - ref. ellipsoid major semi-axis (m)%          e2  - ref. ellipsoid eccentricity squared% Output:  x \%          y  > vectors of cartesian coordinates in CT system (m)%          z /v=a./sqrt(1-e2*sin(lat).*sin(lat));x=(v+h).*cos(lat).*cos(lon);y=(v+h).*cos(lat).*sin(lon);z=(v.*(1-e2)+h).*sin(lat);

⌨️ 快捷键说明

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