Hexagonal layer topology function
hextop calculates the neuron positions for layers whose neurons are
arranged in an
N-dimensional hexagonal pattern.
hextop(dimensions) takes one argument:
Row vector of dimension sizes
and returns an
S matrix of
coordinate vectors where
N is the number of dimensions and
S is the product of
This example shows how to display a two-dimensional layer with 40 neurons arranged in an 8-by-5 hexagonal pattern.
pos = hextop([8 5]); plotsom(pos)