[pointprocesses] improved chapter and added rasterplot()

This commit is contained in:
2018-11-26 19:05:57 +01:00
parent c72ea6ad37
commit acf7fc8c81
10 changed files with 104 additions and 83 deletions

View File

@@ -1,13 +1,13 @@
subplot(1, 3, 1);
spikeraster(poissonspikes, 1.0);
rasterplot(poissonspikes, 1.0);
title('Poisson');
subplot(1, 3, 2);
spikeraster(pifouspikes, 1.0);
rasterplot(pifouspikes, 1.0);
title('PIF OU');
subplot(1, 3, 3);
spikeraster(lifadaptspikes, 1.0);
rasterplot(lifadaptspikes, 1.0);
title('LIF adapt');
savefigpdf(gcf, 'spikeraster.pdf', 15, 5);
savefigpdf(gcf, 'spikeraster.pdf', 15, 5);

View File

@@ -1,7 +1,7 @@
function spikeraster(spikes, tmax)
function rasterplot(spikes, tmax)
% Display a spike raster of the spike times given in spikes.
%
% spikeraster(spikes, tmax)
% rasterplot(spikes, tmax)
% spikes: a cell array of vectors of spike times in seconds
% tmax: plot spike raster upto tmax seconds