Frage

Ich bekomme einen Fehler beim Testen Bayes Net Toolbox für MATLAB, Ich mache das Gleiche wie die gezeigte Installation hier Aber bekommen Sie Fehler (ich habe 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

>> 
War es hilfreich?

Lösung

Wie Sie sagten: Ersetzen Sie die Anrufe zum veralteten Finite durch Isfinite in Bnt/Beispielen/static/zoubin/ffa.m und bnt/Beispiele/static/zoubin/mfa.m

hier ist ein Hinweis

Andere Tipps

Verwenden neuerer Versionen> 7.8 - Ersetzen Sie die Anrufe an das Obsolete finite mit isfinite
in
BNT/examples/static/Zoubin/ffa.m and BNT/examples/static/Zoubin/mfa.m

Also test_BNT Wird jetzt funktionieren.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top