Example files fs2000ms.mod and RBC_Est.mod

Hi everybody,

I have a problem with the User Guide’s example files fs2000ms.mod and RBC_Est.mod. When I run them (I’m using Dynare 4.1.2), I always get this error message:

??? Error: File: C:\dynare\4.1.2\matlab\McMCDiagnostics_core.m Line: 36 Column: 8
Functions cannot be indexed using {} or . indexing.

Error in ==> McMCDiagnostics at 100
fout = McMCDiagnostics_core(localVars,1,npar,0);

Error in ==> dynare_estimation_1 at 1066
McMCDiagnostics(options_, estim_params_, M_);

Error in ==> dynare_estimation at 62

Error in ==> fs2000ns at 175

Error in ==> dynare at 132
evalin(‘base’,fname) ;

I saw on older posts, that the problem had been solved in the Dynare Unstable version, but when I use that I get this error message:

??? Undefined command/function ‘setenv’.

Error in ==> set_dynare_threads at 27

Error in ==> dynare_config at 161

Error in ==> dynare at 80
dynareroot = dynare_config;

Can anybody help me?

Thank you


Dear Alice, the snapshot version is not compatible with old versions of matlab (<=7.2) because the setenv fonction was implemented in matlab 7.3. We use this command to specify the number of threads used in parallalized versions of some mex files. We have to fix this, meanwhile you can safely comment out line 161 in dynare_config.m.

Best, Stéphane.

Dear Stephan,

thank you very much. Now it runs.