function[x,t]=readfiles(n,ch);
for i = 181:n+181
    k=floor(i/100);
    l=floor((i-k*100)/10);
    m=i-k*100-l*10;
    filename=['10um_2p5kV_8p3_30p5' char(k)+48 char(l)+48 char(m)+48 '_Ch' char(ch+48)  '.wfm'];
    [x(i-180,:), t]=wfm2read(filename);
    plot(x(i-180,:));
end
