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

📄 xyz2sph.m

📁 Geodetic tools to be used in navigation analysis
💻 M
字号:
function [az,va,d]=xyz2sph(x,y,z)% XYZ2SPH  Converts Cartesian coordinates in a left-handed%   (local geodetic) system to spherical coordinates.%   Vectorized.  See also SPH2XYZ.% Version: 7 Jul 96% Useage: [az,va,d]=xyz2sph(x,y,z)% Input:  x \%         y  > vectors of cartesian coordinates (linear units)%         z /% Output: az - vector of azimuths (radians)%         va - vector of vertical angles (radians)%         d  - vector of distances (linear units)d=sqrt(x.*x+y.*y+z.*z);az=atan2(y,x);%az=atan(y./x);%az=az+(x<0)*pi;     % 2nd & 3rd quad%az=az+(az<0)*2*pi;  % 4th quadva=asin(z./d);

⌨️ 快捷键说明

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