Templates in HOC
begintemplate CellT
public soma, dendrite, axon
create soma, dendrite[3], axon
proc init() {
for i=0,2 connect dendrite[i](0),soma(0)
connect axon(0), soma(1)
axon insert hh
}
endtemplate CellT
objref cell[10][10]
for i=0,9 for j=0,9 cell[i][j] = new CellT()
Previous slide
Next slide
Back to first slide
View graphic version