%sediment trap summary sedtrap.m
clear;
fp = '2017Oct31';
inFile = sprintf( '../%s/parsed/CPF%s_SED.txt',fp,fp);


inFID = fopen(inFile);

while ~feof(inFID)
    inString = fgets(inFID);
    inFields = strsplit(inString, '\t', 'CollapseDelimiters', false);
    
    %disp(inFields{40});
    line = sprintf('%s',inFields{40});
    for i=1:1:size(line,2)
        if (line(i)==',')
            fprintf('\n');
        else
            fprintf('%c',line(i));
        end
    end
    
    
end

fclose(inFID);