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 ]
Ashish Uthama

Posts: 33
Registered: 2/22/08
Re: newnarx error
Posted: Feb 29, 2008 11:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 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);





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.