close all, clear all, clc
net = linearlayer([0 1],0.02);
net.inputs{1}.size = 1;
net.layers{1}.dimensions = 1;
net.IW{1,1} = [0 0];
net.biasConnect = 0;
Pi = {1};
P = {2 3 4};
T = {3 5 6};
for i=1:5
net.IW{1,1} = [ randn/100 randn/100 ];
net = train(net,P,T,Pi);
y = net(P)
end
y = [3.2583] [4.6624] [6.1790]
y = [3.2590] [4.6624] [6.1789]
y = [3.2598] [4.6625] [6.1788]
y = [3.2587] [4.6624] [6.1789]
y = [3.2575] [4.6623] [6.1791]
Thank you for formally accepting my answer
Greg
Best Answer