Main Content

plotsomnc

R2026b

(To be removed) Plot self-organizing map neighbor connections

plotsomnc 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

plotsomnc(net)

Description

plotsomnc(net) plots a SOM layer showing neurons as gray-blue patches and their direct neighbor relations with red lines.

This plot supports SOM networks with hextop and gridtop topologies, but not tritop or randtop.

Examples

Plot SOM Neighbor Connections

x = iris_dataset;
net = selforgmap([8 8]);
net = train(net,x);

SOM training finished after reaching maximum 200 epochs

plotsomnc(net)

8-by-8 hexagonal SOM showing neurons as patches with red neighbor connection lines

Version History

Introduced in R2008a

collapse all