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

📄 errell3.m

📁 Geodetic tools to be used in navigation analysis
💻 M
字号:
function [ax,az,inc]=errell3(C)% ERRELL3  Computes 3D error ellipsoid from covariance matrix.%   Semi-axes lengths, azimuth, inclinations are ordered%   from smallest to largest.  Note: x & y represent north%   & south (opposite of normal MatLab convention).%   Non-vectorized for multiple stations.  See also ERRELL2.% Version: 18 Jan 96% Useage:  [ax,az,inc]=errell3(C)% Input:   C  - covariance matrix (3D)% Output:  a  - vector of semi-axes lengths%          az - vector of semi-axes azimuths (rad)%          inc- vector of semi-axes inclinations (rad)if nargin~=1  error('Wrong number of input arguments');endif (nargout~=3)  error('Wrong number of output arguments');end[V,D]=eig(C);            % Eigenvalues & vectors[d,ind]=sort(diag(D));   % Sort eigenvaluesV=V(:,ind);              % and eigenvectors%d=flipud(d);     % flip order to (max to min)%V=flipud(V);ax=sqrt(d);az=atan2(V(2,:)',V(1,:)');inc=asin(V(3,:)');

⌨️ 快捷键说明

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