function FFNN
p=[-1 -1 2 2;0 5 0 5];
t=[-1 -1 1 1];
q=[1;2];
net=newff([-1 2;0 5],[3 1],{'tansig','purelin'},'traingdm');
net.trainParam.epochs=600;
net.trainParam.goal=1e-5;

[net,tr]=train(net,p,t);
a=sim(net,p)
pause

a=sim(net,q)
