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

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 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’:wink:

 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?

Hi @sammadikhouloud,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.


Hi :), Thank you, in fact,


I did all the steps of installing Bayes Net Toolbox, but I find error messages when I put test_BNT, attached (picture of my workspace), please helpe me to fix this issue