% testing file reading of csv files. Run from slit dir.

fid = fopen('slit_data\27060017.csv','r');

clear z

for m = 1:1:3
   z = fgetl(fid);
end
sp = zeros(1,2000);
for m = 1:200:1801
   for i = m:1:(m + 199)
      sp(i) = fscanf(fid,'%6f',1);
      fscanf(fid, '%1s',1);
   end
end   
   
%z = fscanf(fid,'%6f',1)

fclose(fid);

