% Analysis of USBL data
% M.B. Matthews, Rob McEwen
% 31.10.00

%filename = '2000305samplelogr.dat';  %Empty
%filename = '2000306samplelogr.dat';  %Empty
%filename = '2000307samplelogr.dat';  %Empty
%filename = '2000308samplelogr.dat';  %Empty
%filename = '2000309samplelogr.dat';  %Data
%filename = '2000310samplelogr.dat';  %Empty
%filename = '2000311samplelogr.dat';  %Empty
%filename = '2000312samplelogr.dat';  %Empty
%filename = '2000313samplelogr.dat';  %Empty
%filename = '2000316samplelogr.dat';  %Empty
%filename = '2000317samplelogr.dat';  %Empty
%filename = '2000318samplelogr.dat';  %Empty
%filename = '2000319samplelogr.dat';  %Empty
%filename = '2000320samplelogr.dat';  %Data
%filename = '2000321samplelogr.dat';  %Data
%filename = '2000322samplelogr.dat';  %Empty


% read in data
if ~exist('dataRead')
disp([' Reading data from file ', filename]);
[		...
  time,		...
  gpsTime,	...
  gpsLat,	...
  gpsLong,	...
  usblHPR,	...
  usblHeading,	...
  usblPitch,	...
  usblRoll,	...
  depth,	...
  positionLat,	...
  positionLong, ...
  altitude,	...
  compass,	...
  pitch,	...
  roll,		...
  dvl1,		...
  dvl2,		...
  dvl3,		...
  dvlValid,	...
  timeCodeString,...
  year,		...
  day,		...
  timeString,	...
  timeZone	...
] = readDVLData(filename);
end
dataRead = 1;

%n=30000;m=n+3550; 
n=1;m=length(time)-1; 

plotTib
