som_2d_demo.m

来自「matlab神经网络代码」· M 代码 · 共 33 行

M
33
字号
% This script runs the som_2d algorithm through the ordering and % convergence phases.%% Hugh Pasika 1997clfP=rand(500,2);subplot(2,2,1)plot(P(:,1),P(:,2),'.')title('Input Distribution')drawnowsubplot(2,2,2)W=(rand(10,10,2)*.2)-.1;som_pl_map(W,1,2)title('Initial Weights')set(gca,'Box','On')drawnowsubplot(2,2,3)[W1 p1]=som_2d(P,10,10,10,[.01,8],W);som_pl_map(W1,1,2)title('Ordering Phase')set(gca,'Box','On')drawnowsubplot(2,2,4)W=som_2d(P,10,10,200,[p1(1) .001 p1(2) 0],W1);som_pl_map(W,1,2)title('Convergence Phase')set(gca,'Box','On')drawnow

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?