Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: newnarx error
Replies: 3   Last Post: Sep 26, 2013 10:08 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Greg Heath

Posts: 5,953
Registered: 12/7/04
Re: newnarx error
Posted: Sep 25, 2013 10:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Christine" wrote in message <fq33r6$od0$1@fred.mathworks.com>...
> 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 two-layer feedforward network with a two-delay input and
> two-delay 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);


I get no error when I run the code.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.