| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Hexagonal layer topology function
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.
This code creates and displays a two-dimensional layer with 40 neurons arranged in an 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 plot generated by the following code.
| Provide feedback about this page |
![]() | hardlims | hintonw | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |