Steady state file

Thanks for the file that automatically adds the required code to feed the steady state values from the Matlab .m-file back to Dynare. However, I am experiencing some problems when updating calibrated parameters that are also computed in the steady state file. The code created by steadystate.m does not change the original parameter values. I could trace back the problem to the following line:

evalin('base', 'M_.params(' num2str(iter) ') = ' M_.param_names(iter,:) ';' ])

The call of M_ in the “base” workspace of Matlab seems to be not working (Matlab 2009b, WinXP 64bit). However, as the structure M_ is set as a global variable by the steadystate.m, simply replacing

evalin('base', 'M_.params(' num2str(iter) ') = ' M_.param_names(iter,:) ';' ])

by

eval( 'M_.params(' num2str(iter) ') = ' M_.param_names(iter,:) ';' ])

does the job (probably a conflict between the variable in the “base” workspace of Matlab and the variable being global).

Johannes