Contenido principal

hextop

(To be removed) Hexagonal layer topology function

hextop will be removed in a future release. For more information, see Transition Legacy Neural Network Code to dlnetwork Workflows.

For advice on updating your code, see Version History.

Syntax

hextop(dimensions)

Description

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

hextop(dimensions) takes one argument:

dimensions

Row vector of dimension sizes

and returns an N-by-S matrix of N coordinate vectors where N is the number of dimensions and S is the product of dimensions.

Examples

collapse all

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)

Figure contains an axes object. The axes object with title Neuron Positions, xlabel position(1,i), ylabel position(2,i) contains 2 objects of type line. One or more of the lines displays its values using only markers

Version History

Introduced before R2006a

collapse all