Dear community!
I would like to make a step-by-step calculation of synaptic input. As you can see in the attached figure, the synaptic input rises only, but my goal is that after the given time constant tau, the synaptic input declines again, with the same value as it were raised.
The goal is:
A single spike should elicit a synaptic input that last for the given time of tau. Thus, the synaptic input should go down and not up.
Thank you in advance for your help.
t = (0:round(Tleng/dt)-1)*dt;
tv = (0:round(Tleng/dt)-1)*dt;
spikes = poisson_train(Ninput, Lrate, Tleng, dt);
spikeall = sum(spikes,1);
g = zeros(1,length(spikeall));
for t = 1:length(spikeall)
set(gcf, 'Position', [100 50 900 600]);
title('simulated synaptic input');