I’m trying to write a loop in which I can see how the results change with different parameterization. Is there any possibility that I edit the mod file via m file in MatLab in order to change the value of a particular parameter in a loop?
Thanks! I read the link you gave me. And I wrote the following code in a MatLab m file:
[code]etas = 0.5:0.01:1.5;
And it reports the following
Attempt to reference field of non-structure array.
Error in set_param_value (line 22)
i = strmatch(pname,M_.param_names,‘exact’);
Can you help me?
You are supposed to run Dynare once before the loop to initialize everything. Only then you can reset the parameter and call the required functions of Dynare. Please follow the example in the linked post closely, otherwise it will not work.