conductance distribution
Posted: Mon Dec 10, 2007 12:55 pm
Hi,
I'm going to set different values for conductance in each compartment as follow:
but the results in the first loop and second one is not the same. do you have any idea why? did i make a mistake?
I'm going to set different values for conductance in each compartment as follow:
Code: Select all
create A
A {L=100 diam=20 nseg=7}
insert pas
insert hh
A {
for (x){
if (x==0){
gnabar_hh(x)= exp(-x*L+L)
print "x=",x," ",gnabar_hh(x)
}else if (x==1){
gnabar_hh(x)= exp(-x*L+L/2)
print "x=",x," ",gnabar_hh(x)
}else{
gnabar_hh(x)= exp(-x*L+2*L)
print "x=",x," ",gnabar_hh(x)
}
}
}
print "============================="
A {for (x) print "x=",x," ",gnabar_hh(x) }