?? 5-2-4.m
字號:
P=[0.5512 0.5123 0.5087 0.5001 0.6012 0.5298 0.5000 0.4965 0.5103 0.5003; 0.4488 0.4877 0.4913 0.4999 0.3988 0.4702 0.5000 0.5035 0.4897 0.4997];
plot(P(1,:),P(2,:),'+r');
hold on
net=newsom([0 1;0 1],[3 4]);
w1_init=net.IW{1,1};
plotsom(w1_init,net.layers{1}.distances);
a=[100 300 500];
for i=1:3
net=init(net);
net=train(net,P);
figure;
w1=net.IW{1,1};
plotsom(w1,net.layers{1}.distances);
end
p=[0.5;0.5];
y=sim(net,p);
y=vec2ind(y)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -