Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

 Messages: [ Previous | Next ]
 Ashish Uthama Posts: 33 Registered: 2/22/08
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:

> problem with the codes below..
> Source code:
>
>
> % 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);

Date Subject Author
2/27/08 Christine
2/29/08 Ashish Uthama
9/25/13 Greg Heath
9/26/13 Steven Lord