sph2xyz.m
来自「GPS相关工具」· M 代码 · 共 20 行
M
20 行
function [x,y,z]=sph2xyz(az,va,d)% SPH2XYZ Converts spherical coordinates to Cartesian% coordinates in a left-handed (local geodetic) system.% Vetorized. See also XYZ2SPH.% Version: 7 Jul 96% Useage: [x,y,z]=sph2xyz(az,va,d)% Input: az - vector of azimuths (radians)% va - vector of vertical angles (radians)% d - vector of distances (linear units)% Output: x \% y > cartesian coordinates (linear units)% z /sinv=sin(va);cosv=cos(va);sina=sin(az);cosa=cos(az);x=d.*cosv.*cosa;y=d.*cosv.*sina;z=d.*sinv;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?