Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



newnarx error
Posted:
Feb 27, 2008 2:35 AM


Hi.. Can someone please help me to figure out what is the problem with the codes below.. Source code: http://www.mathworks.com/access/helpdesk/help/toolbox/nnet/index.html?/access/helpdesk/help/toolbox/nnet/newnarx.html&http://www.google.com/search?q=newnarx
% A problem consisting of sequences of inputs P and targets T P = {[0] [1] [1] [0] [1] [1] [0] [1] [1] [0] [1]}; T = {[0] [1] [2] [2] [1] [0] [1] [2] [1] [0] [1]};
% A twolayer feedforward network with a twodelay input and twodelay feedback is created. % The network has one hidden layer of five tansig neurons. net = newnarx(P,T,[0 1],[1 2],5);
% The network is simulated and its output plotted against the targets. Y = sim(net,P); plot(1:11,[T{:}],1:11,[Y{:}],'o')
% The network is trained for 50 epochs. Again the network's output is plotted. net = train(net,P,T); Yf = sim(net,P); plot(1:11,[T{:}],1:11,[Y{:}],'o',1:11,[Yf{:}],'+')
When I run the program, this error was prompted out:
Error in ==> newnarx at 7 net = newnarx(P,T,[0 1],[1 2],5);



