Amplifying conductances along branches
Posted: Sat Nov 12, 2011 2:10 pm
Hi. I'm trying to make it so that I have a variable conductance, increasing along my dendritic branches by a fractional amount, dependent on the distance along the branch it is from the soma. This is my code:
for (x,0) {
xdist1 = distance(x)
if (xdist1 > 500) { xdist1 = 500 }
else {
// gkabar(x) = .0132 + (.000132 * xdist1)
// ghbar(x) = .00003 + (.000009 * xdist1)
}
}
I read the Programmer's Reference and found the following syntax:
For "distance":
Compute the path distance between two points on a neuron. If a continuous path does not exist the return value is 1e20.
distance() with no arguments
specifies the origin as location 0 of the currently accessed section.
distance(x) (0<=x<=1)
returns the distance (in microns) from the origin to this point on the currently accessed section.
To overcome the old initialization restriction, distance(0, x) can be used to set the origin. Note that distance is measured from the centers of segments.
And for "for":
http://www.neuron.yale.edu/neuron/stati ... r.html#for
It gives me an error with regard to "xdist1". Ideas?
Thank you.
for (x,0) {
xdist1 = distance(x)
if (xdist1 > 500) { xdist1 = 500 }
else {
// gkabar(x) = .0132 + (.000132 * xdist1)
// ghbar(x) = .00003 + (.000009 * xdist1)
}
}
I read the Programmer's Reference and found the following syntax:
For "distance":
Compute the path distance between two points on a neuron. If a continuous path does not exist the return value is 1e20.
distance() with no arguments
specifies the origin as location 0 of the currently accessed section.
distance(x) (0<=x<=1)
returns the distance (in microns) from the origin to this point on the currently accessed section.
To overcome the old initialization restriction, distance(0, x) can be used to set the origin. Note that distance is measured from the centers of segments.
And for "for":
http://www.neuron.yale.edu/neuron/stati ... r.html#for
It gives me an error with regard to "xdist1". Ideas?
Thank you.