% parses the column headers/sensor package portion of code.
clear all
% read in file
filename = 'ColumnHeaderSampleCase.txt';
fid = fopen(filename,'r');
n=0;
while(1)
    n = n+1;
    s = fgetl(fid);
    if s < 0
        break
    elseif contains(s,'--')
        si = strfind(s,'--');
        s = s(si+3:end);
    elseif contains(s,'//') && ~contains(s,'--')
        si = strfind(s,'//');
        s = s(si+2:end);
    else
        break
    end
    s = split(s,' = ',2);
    s(1) = strtrim(s(1));
    d(n,:) = s;

end
fclose(fid);

d = table(d(:,1),str2double(d(:,2)),VariableNames={'parameter','equipped'});