% get profiles test 2e

xi = [20:1:200];
ip = [0 1 2 3 4 5 6 7 8 9 10 12 18];
zi = zeros(length(xi),max(j));
for j=ip 
    if j < 10
    fname = ['%2e0' num2str(j) '3c']
    [x,z]=get_profile(fname,1);
    % interpolate and remove outliers
    zi = interp1(x,z,xi)';
    zp(:,j+1)= zi;
else
    fname = ['%2e' num2str(j) '3c']
    [x,z]=get_profile(fname,1);
    % interpolate and remove outliers
    zi = interp1(x,z,xi)';
    zp(:,j+1)= zi;
end
end

xp = xi;
save bot2e.mat xp zp