I used the following function to measure the input impedance of a neuron model; however, when I printed the variable Zin I got "nan". Any advice on what could be the reason for that?
Code: Select all
proc Compute_Zin() { localobj z
z = new Impedance()
soma { z.loc(0.5) }
z.compute(1, 1)
Zin = 0
soma { Zin = z.input(0.5) }
print "Input impedance: ", Zin
}
Thanks