Code: Select all
create soma
access soma
objref stim
soma stim = new IClamp(0.5)
stim.amp = 1
stim.del = 50
stim.dur = 200
tstop = 300
Code: Select all
create soma
access soma
objref stim
soma stim = new IClamp(0.5)
stim.amp = 1
stim.del = 50
stim.dur = 200
tstop = 300
I agree totally but I don't understand still a single detail. Shouldn't be the plot of i_cap be the same as in the case when i_pas is used?ted wrote:I don't see the problem.
When the IClamp generates a nonzero current, soma.i_cap(0.5) is nonzero.
In both cases, the value of soma.i_cap(0.5) is what Kirchhoff's current law predicts that it must be.
Code: Select all
. Icl Im
. +---current clamp->-+->-membrane---+
. | |
. --- ---
. - -
Im = Icl
c*dv/dt + g_pas*(v-e_pas) = Icl
If g_pas == 0
c*dv/dt = Icl