Page 1 of 1

can I create an array of IClamp in dendrites?

Posted: Tue Jan 10, 2006 4:26 pm
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!

Posted: Tue Jan 10, 2006 5:13 pm
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