Page 1 of 1

matrix Shape plot

Posted: Mon Jun 30, 2008 4:07 pm
by kazmer
Hi,

I made a biophys. neural network with 100 neuron. I would like to order 10x10 matrix in Shape plot. How can I do it?

Thanks,
Kazmer

Graphical display of cells in a network

Posted: Tue Jul 01, 2008 3:47 pm
by ted
Assuming your cell class definitions were created with the CellBuilder (Management page / Cell Type / Save hoc code) or the Network Builder (click on the Hoc File button), each cell will have a public method called position() whose arguments are the xyz coordinates at which the origin of the tree is to be drawn. Example of usage, assuming a cell class called Cell:

Code: Select all

DX = 100 // horizontal and vertical spacing between cells
DY = 100
objref cells
cells = new List()
for i=0,9 {
  for j=0,9 {
    cells.append(new Cell())
    cells.o(cells.count()-1).position(i*DX, j*DY, 0)
  }
}

Re: matrix Shape plot

Posted: Sat Jul 05, 2008 5:02 am
by kazmer
Hi Ted,
Thank very much! My problem is that I wrote cell template in Hoc file and I did not use CellBuilder or NetworkBuilder. How can I code public position in Template.
Kazmer

Re: matrix Shape plot

Posted: Sun Jul 06, 2008 2:12 pm
by ted
Build a toy network with the GUI, then export to a hoc file and study the hoc file to find the necessary ingredients.