From: Jorge Pasquotto on 4 Apr 2010 18:34 "qi weimin" <qwmin(a)tom.com> wrote in message <gbb6k1$mt1$1(a)fred.mathworks.com>... > Using the code provided by Examples in matlab R2008a,there are some errors: > > %--------------------------- > clear; > P = round(rand(1,20)); > T = [0 (P(1:end-1)+P(2:end) == 2)]; > Pseq = con2seq(P); > Tseq = con2seq(T); > net = newelm(P,T,10); > [net,tr] = train(net,Pseq,Tseq); > Y = sim(net,Pseq) > %---------------------------- > First, a Warning: > ??? Warning: Struct field assignment overwrites a value with class "char". > See MATLAB 7.0.4 Release Notes, Assigning Nonstructure Variables As Structures Displays Warning for details. > > In trains at 104 > In network.subsasgn>setAdaptFcn at 1894 > In network.subsasgn at 435 > In newelm>new_5p1 at 172 > In newelm at 101 > > Second, an error: > >> net = train(net,Pseq,Tseq); > ??? Error using ==> calcjxfp > Too many input arguments. > > Error in ==> calcgx at 98 > [gB,gIW,gLW] = feval(net.gradientFcn,net,Q,PD,BZ,IWZ,LWZ,N,Ac,gE,TS); > > Error in ==> traingdx at 231 > [gX,gradient] = calcgx(net,X,trainV.Pd,Zb,Zi,Zl,N,Ac,El,perf,Q,TS); > > Error in ==> network.train at 219 > [net,tr] = feval(net.trainFcn,net,tr,trainV,valV,testV); > ********************************* > > But this example can be run in matlab2007. How to solve this problem? It is a bug in the 2008a version. check bug reports
|
Pages: 1 Prev: how can install netcdf Next: help me- media axis transformation function |