一个基于matlab的径向基的神经网络源程序.txt
来自「一个基于MATLAB的径向基的神经网络源程序」· 文本 代码 · 共 29 行
TXT
29 行
一个基于MATLAB的径向基的神经网络源程序
P = [1 2 3 4 5 6 7 8;...
1 2 3 4 5 6 7 8];
T = [0 0.1 0.2 0.5 0.7 0.9 1.1 2.1];
plot(P,T,'.','markersize',30)
axis([0 9 -1 4])
title('Function to approximate.')
xlabel('P')
ylabel('T')
spread = 0.4;
net = newgrnn(P,T,spread);
A = sim(net,P);
hold on
outputline = plot(P,A,'.','markersize',30,'color',[1 0 0]);
title('Create and test a network.')
xlabel('P')
ylabel('T and A')
p = [6.1;6.2];
a = sim(net,p);
plot(p,a,'.','markersize',30,'color',[1 0 0]);
title('New input value.')
xlabel('P and p')
ylabel('T and a')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?