GET_EPH.M
Upload User: sfyaiting
Upload Date: 2009-10-25
Package Size: 320k
Code Size: 1k
Category:

GPS develop

Development Platform:

Matlab

  1. function eph = get_eph(ephemeridesfile)
  2. %GET_EPH  The ephemerides contained in ephemeridesfile
  3. %         are reshaped into a matrix with 21 rows and
  4. %         as many columns as there are ephemerides.
  5. %         Typical call eph = get_eph('rinex_n.dat')
  6. %Kai Borre 10-10-96
  7. %Copyright (c) by Kai Borre
  8. %$Revision: 1.0 $  $Date: 1997/09/26  $
  9. fide = fopen(ephemeridesfile);
  10. [eph, count] = fread(fide, Inf, 'double');
  11. noeph = count/21;
  12. eph = reshape(eph, 21, noeph);
  13. %%%%%%%% end get_eph.m %%%%%%%%%%%%%%%%%%%%%