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
matrix Shape plot
Moderator: wwlytton
-
- 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
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
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
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
-
- Site Admin
- Posts: 6299
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: matrix Shape plot
Build a toy network with the GUI, then export to a hoc file and study the hoc file to find the necessary ingredients.