Loading Parameters from External Mat file

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Loading Parameters from External Mat file

Postby robpancr » Mon May 27, 2013 10:16 am

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
robpancr
 
Posts: 9
Joined: Mon Oct 15, 2012 8:44 am

Re: Loading Parameters from External Mat file

Postby jpfeifer » Mon May 27, 2013 12:34 pm

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
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Loading Parameters from External Mat file

Postby Aries86 » Mon Jun 17, 2013 11:51 am

Yep, seems like that was the problem. Thanks!
Aries86
Aries86
 
Posts: 1
Joined: Mon Jun 17, 2013 11:41 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests