matrix Shape plot

Moderator: wwlytton

Post Reply
kazmer
Posts: 10
Joined: Thu May 17, 2007 2:37 pm

matrix Shape plot

Post 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
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Graphical display of cells in a network

Post 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)
  }
}
kazmer
Posts: 10
Joined: Thu May 17, 2007 2:37 pm

Re: matrix Shape plot

Post 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
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: matrix Shape plot

Post 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.
Post Reply