14 lines
333 B
Matlab
14 lines
333 B
Matlab
maxisi = 300.0;
|
|
dt = 0.005;
|
|
poissonisis = isis(poissonspikes);
|
|
rate = 1.0/mean(poissonisis);
|
|
plotisihist(poissonisis, dt);
|
|
tt = linspace(0.0, 0.001*maxisi, 200);
|
|
pexp = rate*exp(-tt*rate);
|
|
hold on;
|
|
plot(1000.0*tt, pexp, 'r', 'linewidth', 4)
|
|
hold off;
|
|
xlim([0, maxisi])
|
|
title('Poisson');
|
|
savefigpdf(gcf, 'poissonisihist.pdf', 10, 6);
|