2011-03-21 31 views
0

我得到一个错误,当试图测试Bayes Net Toolbox for Matlab,我做同样如图所示here安装,但得到的错误(我有Matlab的R2010b中):贝叶斯网络工具箱Matlab的安装错误MATLAB R2010b中

>> cd 'C:\MATLAB\R2010b\FullBNT-1.0.4' 
>> addpath(genpathKPM(pwd)) 
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\assert.m has 
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential 
name conflict. 
> In path at 110 
    In addpath at 87 
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isscalar.m has 
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential 
name conflict. 
> In path at 110 
    In addpath at 87 
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isvector.m has 
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential 
name conflict. 
> In path at 110 
    In addpath at 87 
>> test_BNT 

ll = 

    1.0e-010 * 

    -0.0670 0.1697 

cycle 1 lik -51.5585 
cycle 2 lik -45.0863 
cycle 3 lik -42.9953 
??? Undefined function or method 'finite' for input arguments of type 'double'. 

Error in ==> ffa at 71 
    elseif ((lik-likbase)<(1+tol)*(oldlik-likbase)|~finite(lik)) 

Error in ==> fa1 at 27 
[L1, Psi1, LL1] = ffa(X,k,max_iter); 

Error in ==> test_BNT at 8 
fa1 

>> 

回答

1

正如你所说的:在 BNT /例子/静态/ Zoubin/ffa.m和BNT /例子/静态/ Zoubin/mfa.m调用替换与ISFINITE 过时有限

这里是一个reference

0

使用新版本> 7.8 - 与isfinite

BNT/examples/static/Zoubin/ffa.m and BNT/examples/static/Zoubin/mfa.m

所以test_BNT现在将W¯¯更换调用过时finite扫。