数学建模社区-数学中国

标题: 为什么我的MATLAB中国trainwh语句不能使用? [打印本页]

作者: mathhgr    时间: 2012-11-24 12:35
标题: 为什么我的MATLAB中国trainwh语句不能使用?
P=[1 -1.2];
T=[0.5 1];
[R Q]=size(P);
[S Q]=size(T);
B=rands(S,1);
W=rands(S,R);
B=rands(S,1);
max_epoch=20;
err_goal=0.001;
lr=0.4*maxlinlr(P);
disp_freq=1;
TP=[disp_freq max_epoch err_goal lr];
[W,B,epochs,error]=trainwh(W,B,P,T,TP)

上面是我的程序语句,当我按执行以后,系统就给出提示:

Undefined function 'trainwh' for input arguments of type 'double'.

请问这是怎么回事?
作者: 天海星云    时间: 2012-11-24 13:05
貌似“trainwh”是在老版本上的指令,你用了新版本的电脑运行了。我刚用matlab2009运行过,也显示过时,不过还能出结果。如下

W =

   -0.2289


B =

    0.7112


epochs =

    11


error =

    7.5867    2.8556    1.0969    0.4308    0.1732    0.0713    0.0300    0.0129    0.0056    0.0025    0.0011    0.0005

作者: mathhgr    时间: 2012-11-24 13:10
天海星云 发表于 2012-11-24 13:05
貌似“trainwh”是在老版本上的指令,你用了新版本的电脑运行了。我刚用matlab2009运行过,也显示过时,不过 ...

那该怎么调整呢?
作者: 天海星云    时间: 2012-11-24 22:04
mathhgr 发表于 2012-11-24 13:10
那该怎么调整呢?

用老板的软件吧
作者: mathhgr    时间: 2012-11-29 22:00
    这是老版本的命令代码,不适合2012a版本




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5