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



Re: newnarx error
Posted:
Feb 29, 2008 11:24 AM


there has to be more of the error text you might have missed?
On Wed, 27 Feb 2008 02:35:02 0500, Christine <christine_gee@hotmail.com> wrote:
> 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);



