clear all
close all



outDir = 'SeaHorseFiles';

  fid = fopen([outDir '/SH__1593.cnv']);
  
  %Determine appropriate info from text of each file.
  first_sample_time = [];
  while(isempty(first_sample_time))
     tline = fgets(fid);
     k = strfind(tline,'First Sample Time:');
     if(k>0)
         first_sample_time = tline(k+19:k+39);
     end
  end
 
  
  %Read Data
  RawData = textscan(fid, '%f %f %f %f %f %f %f %f %f','commentStyle','*');
  fclose(fid);
  
  time = 1:length(RawData{1});
  time = time/4;
  
  
 f =  figure;  %('PaperPositionMode','manual','PaperType','letter','PaperPosition',[0 0 8.5 11]); 
  plot(time,RawData{1});
  
  set(gca,'YDir','reverse') ;
  xlabel('time (s)');
  ylabel('pressure (dBar)');
  
  
set(f,'Units','inches');
rect = get(f,'PaperPosition');
rect(3) = 7;
rect(4) = 3.2;
set(f,'PaperPosition',rect);

  
  print -deps2c Profile