firstfile=201;
lastfile=216;
lf=20;
hf=80;
timelength=.12;

for file=firstfile:lastfile
  filename=[num2str(file),'.dat'];
  pdfname=[num2str(file),'.pdf'];
  clf;
  seg2plot(filename,timelength,lf,hf);
  orient landscape;
  print('-dpdf',pdfname);
end

