bayesnet / bnt

Bayes Net Toolbox for Matlab
460 stars 247 forks source link

Unrecognized function or variable 'genpathKPM'. #85

Open musiched99 opened 2 years ago

musiched99 commented 2 years ago

Hi. Am trying to install this toolbox by following the instructions given here: https://github.com/bayesnet/bnt/wiki/HowToInstall.

However, after I change the directory and proceed to run the command >> addpath(genpathKPM(pwd)), I get the error:

Unrecognized function or variable 'genpathKPM'.

Any ideas as to what might be causing this ? My MATLAB version is 9.10.0.1602886 (R2021a). Thanks !

WANGXin1205 commented 2 years ago

Hi use ' addpath(genpath('path')) ' , path like '/Applications/Matlab_R2021a.app/toolbox/bnt' and 'savepath' after 'addpath' your need add all toolbox not a function good luck!

musiched99 commented 2 years ago

Hi there

Many thanks for your response.

To be completely honest, not sure if I managed or not with installing the toolbox. I ran the commands shown below in the attachment and got this output when I ran >> test_BNT:

Screenshot 2021-09-16 at 23 56 30

Appreciate the help you've given till now and thanks in advance for any extra help :)

WANGXin1205 commented 2 years ago

I think bnt was already installed, the 'discrete1' may have mistake. I don't how it happen.In my bnt toolbox ,I can't find this problem. image