FIND_EPH.M
资源名称:easy.zip [点击查看]
上传用户:sfyaiting
上传日期:2009-10-25
资源大小:320k
文件大小:1k
源码类别:
GPS编程
开发平台:
Matlab
- function icol = find_eph(Eph,sv,time)
- %FIND_EPH Finds the proper column in ephemeris array
- %Kai Borre and C.C. Goad 11-26-96
- %Copyright (c) by Kai Borre
- %$Revision: 1.1 $ $Date: 1998/07/01 $
- isat = find(Eph(1,:) == sv);
- n = size(isat,2);
- if n == 0
- break
- end;
- icol = isat(1);
- dtmin = Eph(21,icol)-time;
- for t = isat
- dt = Eph(21,t)-time;
- if dt < 0
- if abs(dt) < abs(dtmin)
- icol = t;
- dtmin = dt;
- end
- end
- end
- %%%%%%%%%%%% find_eph.m %%%%%%%%%%%%%%%%%