Main Content

plotsom

(To be removed) Plot self-organizing map

plotsom 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

plotsom(pos)
plotsom(W,D,ND)

Description

plotsom(pos) takes one argument,

POS

N-by-S matrix of S N-dimension neural positions

and plots the neuron positions with red dots, linking the neurons within a Euclidean distance of 1.

plotsom(W,D,ND) takes three arguments,

W

S-by-R weight matrix

D

S-by-S distance matrix

ND

Neighborhood distance (default = 1)

and plots the neuron’s weight vectors with connections between weight vectors whose neurons are within a distance of 1.

Examples

Plot Self-Organizing Maps

These examples generate plots of various layer topologies.

pos = hextop([5 6]); 
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

pos = gridtop([4 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

pos = randtop([18 12]); 
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

pos = gridtop([4 5 2]); 
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

pos = hextop([4 4 3]); 
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