[pointprocesses] improved chapter and added rasterplot()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user