Main Content

plotsomnc

Plot self-organizing map neighbor connections

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

{"String":"Figure Neural Network Training (31-Aug-2022 01:37:29) contains an object of type uigridlayout.","Tex":[],"LaTex":[]}

plotsomnc(net)

{"String":"Figure SOM Neighbor Connections (plotsomnc) contains an axes object. The axes object with title SOM Neighbor Connections contains 386 objects of type patch, line.","Tex":"SOM Neighbor Connections","LaTex":[]}

Version History

Introduced in R2008a