[f,pth] = uigetfile();
fn = fullfile(pth,f);
opts = detectImportOptions(fn, ...
    "TextType","string",...
    "VariableNamingRule","preserve",...
    "ReadVariableNames",true,...
    "CommentStyle","#");
tbl = readtable(fn,opts);

header = string([]);
fid = fopen(fn,"r");
for q = 1:(opts.DataLines(1)-2)
    header(q) = string(fgetl(fid));
end
fclose(fid);