% 

%  routine to read ascii output of event log and plot it

%



% read one line at a time with loop

fid=fopen('events.txt','r');



% read to find out how many lines

[aa,count]=fscanf(fid,'%s');

fseek(fid,0,'bof');



% now do loop

for i=1:count/17;

  this=fscanf(fid,'%s',15);

  lat(i)=fscanf(fid,'%f',1);

  lon(i)=fscanf(fid,'%f\n');

end;



% plot

plot(lon,lat,'c+');