Documentation Center

  • Trial Software
  • Product Updates

Contents

hextop

Hexagonal layer topology function

Syntax

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

Description

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

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

dimi

Length of layer in dimension i

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 an 8-by-5 hexagonal pattern.

pos = hextop(8,5);
net = selforgmap([8 5],'topologyFcn','hextop');
plotsomtop(net)

See Also

| |

Was this topic helpful?