Azzera filtri
Azzera filtri

How can i edit add_BNT_to_path.m file (Bayes Net Toolbox)

3 visualizzazioni (ultimi 30 giorni)
I want to use Bayes Net Toolbox, but i have problems with the integration of BNT into matlab, I explain, i download the package,i use a program like Winzip. This will create a directory called BNT.the creator of this library, says that we have to modify the file add_BNT_to_path.m. (Edit the file "BNT/add_BNT_to_path.m" so it contains the correct pathname. For example, in Windows, I download BNT.zip into C:\kpmurphy\matlab, and then comment out the second line (with the % character), and uncomment the third line, which reads BNT_HOME = 'C:\kpmurphy\matlab\BNT';)
global BNT_HOME
if (~exist ('BNT_HOME'))
error ('Please define the global BNT_HOME before running add_BNT_to_path.');
end
%BNT_HOME = 'C:\kmurphy\matlab';
%BNT_HOME = '/home/ai2/murphyk/matlab/FullBNT';
%addpath(genpathKPM())
if 0 % genpath creates a list of all subdirectories. % The syntax was changed between matlab 5 and matlab 6. v = version; if v(1)=='5' addpath(genpath(BNT_HOME,0)) else addpath(genpath(BNT_HOME)) end % Genpath has a bug, so that it fails to add directories which only contain directories but no % regular files e.g., BNT/inference. Hence we add dummy files to such directories. % This bug has been fixed in matlab 6.5. % Also, genpath adds all subdirectories, including 'Old' ones. % Sometimes the old files mask the newer ones, creating problems... end my questions are: 1) how can i edit this fil? 2) there is a comment in this file "The syntax was changed between matlab 5 and matlab 6", but i use MATLAB Vers 8.5 (R2015a), so what should I do? I tried to solve but I could not, pleas help me?

Risposte (1)

simo kim
simo kim il 17 Apr 2019
Modificato: simo kim il 17 Apr 2019
HowToInstall folow blue link i hop that help you goodluck

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by