⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example4.20

📁 粒子群优化算法pso
💻 20
字号:
close all
clf reset
figure(gcf);
echo on
clc
pause
clc
p=rands(2,500);
pause
clc
plot(P(1,:),P(2,:),'*');
axis([-1.2 1.2 -1.2 1.2]);
title('Input data');
pause 
clc
 net=newsom([-1 1;-1 1],[4 5]);
 pause
 clc
 figure;
 plotsom(net.layers{1}.positions);
 pause
 clc
 figure;
 plotsom(net.IW{1,1},net.layers{1}.distances);
 pause
 clc
 net.trainparam.epochs=1;
 net=train(net,p);
 pause
 clc
 figure;
 plotsom(net.IW{1,1},net.layers{1}.distances);
 pause
 clc
 

⌨️ 快捷键说明

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