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

📄 errell2.m

📁 Geodetic tools to be used in navigation analysis
💻 M
字号:
function [a,b,az]=errell2(C)% ERRELL2  Computes 2D error ellipse from covariance matrix.%   Note: x & y represent north & south (opposite of%   normal MatLab convention).  Non-vectorized.  See also%   ERRELL3.% Version: 24 Jan 96% Useage:  [a,b,az]=errell2(C)% Input:   C  - covariance matrix (2D)% Output:  a  - major semi-axis of error ellipse%          b  - minor semi-axis of error elilpse%          az - azimuth of major axis (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 & vectorsd=diag(D);inda=find(max(d)==d);indb=find(min(d)==d);a=sqrt(d(inda(1)));b=sqrt(d(indb(1)));az=atan2(V(2,inda(1)),V(1,inda(1)));

⌨️ 快捷键说明

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