How to use area(x) and L
Posted: Sun Mar 31, 2013 3:03 pm
Hi,
Very basic question... still learning how to talk to NEURON...
Wondering how to get lengths and areas of segments that are subsections of a section in the oc> prompt.
So for example, I wish to know the area of segments 0-5 of a given section that has 100 segments. How would I ask the oc> prompt for this information?
Something like:
finitialize()
_sum = 0
forsec SectionName for ?? _sum+= area(?)
_sum
Similarly for L, which I understand works a little differently from area(x)...
Thanks!
Very basic question... still learning how to talk to NEURON...
Wondering how to get lengths and areas of segments that are subsections of a section in the oc> prompt.
So for example, I wish to know the area of segments 0-5 of a given section that has 100 segments. How would I ask the oc> prompt for this information?
Something like:
finitialize()
_sum = 0
forsec SectionName for ?? _sum+= area(?)
_sum
Similarly for L, which I understand works a little differently from area(x)...
Thanks!