can I create an array of IClamp in dendrites?

Anything that doesn't fit elsewhere.
Post Reply
xyang

can I create an array of IClamp in dendrites?

Post by xyang »

want to clamp a certain length of dendrite, and to clamp 10 neighboring nseg. in hoc file, can I use for loop? is it possible to use an array of IClamp?
Thanks!
ted
Site Admin
Posts: 6303
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Code: Select all

create dendrite
NUMBER = 11
dendrite nseg = NUMBER
objref icl[NUMBER]
ii = 0
dendrite for (x,0) {
  icl[ii] = new IClamp(x)
  ii += 1
}
attaches a different IClamp to each internal node of dendrite.

--Ted
Post Reply