fixed initial condition of IF models
This commit is contained in:
@@ -19,7 +19,7 @@ function spikes = lifspikes(trials, input, tmax)
|
||||
for k=1:trials
|
||||
times = [];
|
||||
j = 1;
|
||||
v = vreset + (vthresh-vreset)*rand(1);
|
||||
v = vreset + (vthresh-vreset)*rand();
|
||||
noise = sqrt(2.0*D)*randn(n, 1)/sqrt(dt);
|
||||
for i=1:length(noise)
|
||||
v = v + (- v + noise(i) + input)*dt/tau;
|
||||
|
||||
Reference in New Issue
Block a user