using ri(x) - what "r I" doing wrong?
Posted: Tue Oct 23, 2007 9:15 am
Hi there. I am trying to use the ri function, but somehow i am missing the point. here is my file:
load_file ("nrngui.hoc")
create dendrite
create dendrite
dendrite {
L = 4
diam = 2
nseg = 51
cm = 1
Ra = 400
insert pas g_pas=0.0003
e_pas=-80
}
access dendrite
ri(0.01)
ri(1)
============
output:
4.9930963
4.9930963
==> My problem: The values are both the same where i thought they should differ since i am measuring between the same starting at different end points. Hm
Now, I thought ri(x) would give me the resistance "between the center of the segment containing x and its parent segment" (documentation).
Clearly, i have a misconception of what "parent segment" is supposed to mean. I thought it was segment zero, but it seems as if it's just "the next segment over" in other words, ri s the resistance between two ajacent node points, yes?
So my next question would be: How do I make neuron give me the resistance bewteen point a and b, in the same compartment, and between different compartments?
Thank you
load_file ("nrngui.hoc")
create dendrite
create dendrite
dendrite {
L = 4
diam = 2
nseg = 51
cm = 1
Ra = 400
insert pas g_pas=0.0003
e_pas=-80
}
access dendrite
ri(0.01)
ri(1)
============
output:
4.9930963
4.9930963
==> My problem: The values are both the same where i thought they should differ since i am measuring between the same starting at different end points. Hm
Now, I thought ri(x) would give me the resistance "between the center of the segment containing x and its parent segment" (documentation).
Clearly, i have a misconception of what "parent segment" is supposed to mean. I thought it was segment zero, but it seems as if it's just "the next segment over" in other words, ri s the resistance between two ajacent node points, yes?
So my next question would be: How do I make neuron give me the resistance bewteen point a and b, in the same compartment, and between different compartments?
Thank you