time = []; amplitude = []; rise = []; decay = []; area = [];
culture = []; div = []; treatment = []; fid = []; bath = [];

fname = 'buster359_cell02_E-10.ASC';
x = importdata(fname);
upos = strfind(fname,'_');

culture_tmp = fname(1:upos-1);
div_tmp = 14;
treatment_tmp = '20uM CNQX';
bath_tmp = '1uM TTX, 20uM bicuculline';

for i = 1:size(x,1)
    time = [time; x(:,2)];
    amplitude = [amplitude; x(:,3)];
    rise = [rise; x(:,4)];
    decay = [decay; x(:,5)];
    area = [area; x(:,6)];
    culture = [culture; repmat({'buster359'},size(x,1),1)];
    div = [div; repmat(14,size(x,1),1)];
    treatment = [treatment; repmat({treatment_tmp},size(x,1),1)];
    fid = [fid; repmat({fname},size(x,1),1)];
    bath = [bath; repmat({bath_tmp},size(x,1),1)];
end