Page 1 of 1

Loading Parameters from External Mat file

PostPosted: Mon May 27, 2013 10:16 am
by robpancr
Dear all,
I am facing the following problem.
I have a mod file, which I would like to run in a loop where some parameters change in each iteration.
I though that the way to do it was to save the parameters in a XXX.mat file and write load XXX.mat in the mod file, instead of assigning values.
It does not work properly, since the M_.params variable generated is full of NaN.

Do you know how to solve this issue?
Thanks

Re: Loading Parameters from External Mat file

PostPosted: Mon May 27, 2013 12:34 pm
by jpfeifer
See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=3022 and an example iterating over Dynare simulations here (see that last zip-file)
Code: Select all
http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4699

Re: Loading Parameters from External Mat file

PostPosted: Mon Jun 17, 2013 11:51 am
by Aries86
Yep, seems like that was the problem. Thanks!