From: david on
Hello all,
I tried the example that exists in matlab documentation but i have got an error :
??? Error using ==> newfftd
Input ranges is not a two column matrix.
I use the matlab version 7 .
could any one help me finding the error ?
the code is :
P = {1 0 0 1 1 0 1 0 0 0 0 1 1 0 0 1};
T = {1 -1 0 1 0 -1 1 -1 0 0 0 1 0 -1 0 1};
net = newfftd(P,T,[0 1],5);
Y = sim(net,P)
net.trainParam.epochs = 50;
net = train(net,P,T);
Y = sim(net,P)
best regards

David
From: us on
"david " <david.sabine760(a)gmail.com> wrote in message <hnnpmm$t01$1(a)fred.mathworks.com>...
> Hello all,
> I tried the example that exists in matlab documentation but i have got an error :
> ??? Error using ==> newfftd
> Input ranges is not a two column matrix.
> I use the matlab version 7 .
> could any one help me finding the error ?
> the code is :
> P = {1 0 0 1 1 0 1 0 0 0 0 1 1 0 0 1};
> T = {1 -1 0 1 0 -1 1 -1 0 0 0 1 0 -1 0 1};
> net = newfftd(P,T,[0 1],5);
> Y = sim(net,P)
> net.trainParam.epochs = 50;
> net = train(net,P,T);
> Y = sim(net,P)
> best regards
>
> David

a hint:
- the input for some functions (including NEWFFTD) has changed between 2007a and 2007b

http://www.mathworks.com/access/helpdesk/help/toolbox/nnet/rn/rn12.html#60374

us
From: david on
"us " <us(a)neurol.unizh.ch> wrote in message <hnnvao$3r1$1(a)fred.mathworks.com>...
> "david " <david.sabine760(a)gmail.com> wrote in message <hnnpmm$t01$1(a)fred.mathworks.com>...
> > Hello all,
> > I tried the example that exists in matlab documentation but i have got an error :
> > ??? Error using ==> newfftd
> > Input ranges is not a two column matrix.
> > I use the matlab version 7 .
> > could any one help me finding the error ?
> > the code is :
> > P = {1 0 0 1 1 0 1 0 0 0 0 1 1 0 0 1};
> > T = {1 -1 0 1 0 -1 1 -1 0 0 0 1 0 -1 0 1};
> > net = newfftd(P,T,[0 1],5);
> > Y = sim(net,P)
> > net.trainParam.epochs = 50;
> > net = train(net,P,T);
> > Y = sim(net,P)
> > best regards
> >
> > David
>
> a hint:
> - the input for some functions (including NEWFFTD) has changed between 2007a and 2007b
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/nnet/rn/rn12.html#60374
>
> us

Thank you Mr for your reply ,i have version 7.1.0.246(R14) service pack 3.
I don't know how to solve this problem .
From: Steven Lord on

"david " <david.sabine760(a)gmail.com> wrote in message
news:hno3ut$3d$1(a)fred.mathworks.com...
> "us " <us(a)neurol.unizh.ch> wrote in message
> <hnnvao$3r1$1(a)fred.mathworks.com>...
>> "david " <david.sabine760(a)gmail.com> wrote in message
>> <hnnpmm$t01$1(a)fred.mathworks.com>...
>> > Hello all,
>> > I tried the example that exists in matlab documentation but i have got
>> > an error :
>> > ??? Error using ==> newfftd
>> > Input ranges is not a two column matrix.
>> > I use the matlab version 7 .
>> > could any one help me finding the error ?
>> > the code is :
>> > P = {1 0 0 1 1 0 1 0 0 0 0 1 1 0 0 1};
>> > T = {1 -1 0 1 0 -1 1 -1 0 0 0 1 0 -1 0 1};
>> > net = newfftd(P,T,[0 1],5);
>> > Y = sim(net,P)
>> > net.trainParam.epochs = 50;
>> > net = train(net,P,T);
>> > Y = sim(net,P)
>> > best regards David
>>
>> a hint:
>> - the input for some functions (including NEWFFTD) has changed between
>> 2007a and 2007b
>>
>> http://www.mathworks.com/access/helpdesk/help/toolbox/nnet/rn/rn12.html#60374
>>
>> us
>
> Thank you Mr for your reply ,i have version 7.1.0.246(R14) service pack 3.
> I don't know how to solve this problem .
>

Don't look at the example from the online documentation. The online
documentation is for the most recent release (currently R2010a) and may
contain functions or functionality not present in earlier releases, or code
that may not (due to bug fixes, enhancements, or other changes) run in
earlier releases. [While we do take backwards compatibility seriously,
sometimes we do need to make changes to fix bugs or provide new and/or
easier-to-use functionality.] Open up the documentation for this function
that was included in your installation (doc newfftd) and use the example
from that documentation.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ