Dear all,
I have encountered a problem with the new version of Matlab (2008b) and Dynare 4.
I need to compute the steady state of a model outside dynare to give a correct value for same parameters.
In the previous version of Matlab I could define a function that, set as global the value of the parameters read in Dynare, could compute the steady state.
However, with the new version of matlab, if I declare parameters as global inside a function, those parameters get as initial value an empty matrix.
In other words, in the previous of matlab declaring some parameters as global inside a function did not alter the value that those parameters were assigned in Dynare. In the new version of Matlab, when you declare a parameter as a global variable, its value is reset to an empty matrix.
The question is:
Is there any way to declare some variable as global INSIDE the .mod file in Dynare? That would solve the problem.
Thanks in advance
R
P.S. I am aware that I can "go around" the problem using some tricks, but I am really curious to know if we can actually declare global variable in Dynare. I haven't found something about that in the help.