Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - MatteoV

Pages: [1]
FAQ / Re: How can I use HUGIN in Matlab?
« on: February 15, 2018, 16:33:26  »
Dear Anders,

Please find attached the .m file and the corresponding Hugin file.

Hope this helps!

Thank you!!!

FAQ / Re: How can I use HUGIN in Matlab?
« on: February 09, 2018, 19:01:50  »

Thank you for this topic and short code.
I need to use Hugin with Matlab for a case study. I do know that using C++ I can specify the prior distribution of a node (A) by using a simple code as follows:

Table *table = A->getTable ();
  NumberList data = table->getData ();

  data[0] = 0.5;
  data[1] = 0.4;
  data[2] = 0.1;
  table->setData (data);

Within the Matlab framework, thanks to your suggestion, I am able to get the name name, Select the state (SelectState) and retrieving the belief of the network node by using GetBelief. However, I am not able to assign the prior distribution of to a node. In fact, I get the following error message "No appropriate method, property, or field 'GetTable' for class 'HAPI.Domain'." or "No appropriate method, property, or field 'getTable' for class 'HAPI.Domain'. "

I do have this problem also with other command, such as getName, getMean etc.

Do you kindly have any suggestion for this?

Thanks a lot!

Any possible solution?

General Discussion / Re: Hugin whitin matlab
« on: May 09, 2016, 15:20:53  »

thanks for your reply.

Yes, I was able to run all the forum's examples. However, my question was wider than that, for example I'd like to know how the different classes of the Matlab assembly can be used and how call the different Hugin functions. Do any tutorials exist?


General Discussion / Hugin whitin matlab
« on: May 04, 2016, 16:00:13  »
Hi all,

I have already read the post regarding "How can I use HUGIN in Matlab?" (,233.0.html) but I'd like to ask some tips. Indeed, I'd like to know:

1. How can I build a BBN model within matlab and run it using Hugin? I mean, how can I use hugin in all its powerful tools through Matlab?

2. how the instruction of the api-manual ( can be used in matlab?



Pages: [1]