Neural Network Toolbox Previous page   Next Page
hextop

Hexagonal layer topology function

Syntax

pos = hextop(dim1,dim2,...,dimN)

Description

hextop calculates the neuron positions for layers whose neurons are arranged in a N dimensional hexagonal pattern.

hextop(dim1,dim2,...,dimN) takes N arguments,

and returns an N-by-S matrix of N coordinate vectors where S is the product of dim1*dim2*...*dimN.

Examples

This code creates and displays a two-dimensional layer with 40 neurons arranged in a 8-by-5 hexagonal pattern.

This code plots the connections between the same neurons, but shows each neuron at the location of its weight vector. The weights are generated randomly so that the layer is very disorganized, as is evident in the fplo generated by the following code.

See Also

gridtop, randtop


Previous page  hardlims hintonw Next page

© 1994-2005 The MathWorks, Inc.