The Math Forum

Search All of the Math Forum:

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

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

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

Advanced Search

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

Posts: 66
Registered: 2/27/08
newnarx error
Posted: Feb 27, 2008 2:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi.. Can someone please help me to figure out what is the
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);

% The network is trained for 50 epochs. Again the network's
output is plotted.
net = train(net,P,T);
Yf = sim(net,P);

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.