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

📄 translatenum.m

📁 RAIM 完好性分析
💻 M
字号:
function [xs,ys,zs]=translatenum(sate,k,Xs,Ys,Zs,flag)

%*********************************
% ** 获取指定可见星坐标
% ** sysnum 组合系统数目,exp:gps sysnum=1; gps/galileo sysnum = 2; gps/galileo/bd sysnum = 3 
% **********************************

switch flag
    case 1
        mat_h=[1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6];
        mat_l=[1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4];
    case 2
        mat_h=[1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3];
        mat_l=[1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9];
    case 3
        mat_h=[1,1];
        mat_l=[1,2];
end
x=[];y=[];z=[];

for i=1:k
   h=mat_h(1,sate(1,i));
   l=mat_l(1,sate(1,i));
   x=[x,Xs(h,l)];
   y=[y,Ys(h,l)];
   z=[z,Zs(h,l)];
end
xs=x(1,:)';
ys=y(1,:)';
zs=z(1,:)';

⌨️ 快捷键说明

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