How can i edit add_BNT_to_path.m file (Bayes Net Toolbox)
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!