Main Content

plotsomnc

(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);

Figure Neural Network Training (24-Jan-2026 18:15:58) contains an object of type uigridlayout.

plotsomnc(net)

Figure SOM Neighbor Connections (plotsomnc) contains an axes object. The axes object with title SOM Neighbor Connections contains 386 objects of type patch, line.

Version History

Introduced in R2008a

collapse all