x1 = loadspk('C:\Users\Lab\Documents\mingfaifong\2013-03-08_barbie21332_11-13DIV_MEA_CNQX\barbie21332_11DIV_nodrug_01.spk');
x2 = loadspk('C:\Users\Lab\Documents\mingfaifong\2013-03-08_barbie21332_11-13DIV_MEA_CNQX\barbie21332_12DIV_40uM-CNQX_01.spk');

dt = 60;
bin1 = min(x1.time):dt:max(x1.time);
bin2 = min(x2.time):dt:max(x2.time);

asdr1 = histc(x1.time,bin1)/dt;
asdr2 = histc(x2.time,bin2)/dt;

figure;
plot((bin1-max(bin1))/3600,asdr1,'-k');
hold on;
plot(bin2/3600,asdr2,'-k');
