Release of Dynare 4.5.1


Dear Dynare users and friends,

We are pleased to announce the release of Dynare 4.5.1.

This is a bug fix release.

The Windows packages are already available for download at:

The Mac and GNU/Linux packages (for Debian and Ubuntu LTS) should follow soon.

This release is compatible with MATLAB versions 7.3 (R2006b) to 9.2 (R2017a)
and with GNU Octave versions 4.2.

Here is a list of the problems identified in version 4.5.0 and that have been
fixed in version 4.5.1:

  • Fixed out of memory issue with simpsa optimization algorithm.

  • Added missing plots for measurement errors with generate_trace_plot

  • Posterior moments after MCMC for very big models were not correctly computed
    and their plotting might crash Dynare.

  • Results of the posterior conditional variance decomposition after MCMC were
    not correctly computed.

  • Options use_shock_groups and colormap of the shock_decomposition
    command were not working.

  • Added a clean error message if sensitivity toolbox is used with recursive

  • Computation of posterior filtered variables was crashing in models with only
    one variable.

  • Fixed various typos and errors in the reference manual.

On behalf of the Dynare Team






Stephan, i got a problem with dyntable in versions 4.5.0 and 4.5.1. dyntable worked fine in version 4.4.3 .
here is the error message, can you help?
Struct contents reference from a non-struct array object.

Error in dyntable (line 31)
if options_.noprint

Error in rbc_cooley_scenarios (line 165)
dyntable('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),M_.endo_names(1:6,:),statistic1,10,8,4);

Error in dynare (line 223)
evalin('base',fname) ;

Error in main_comparison_RBC (line 45)
       dynare  rbc_cooley_scenarios.mod noclearall


Dear Werner,

We have changed the interface of the dyntable routine between 4.4 and 4.5. Are you calling directly this function in your mod file? If not can you post our mod file?

In 4.5.x the header of the function is:

function dyntable(options_,title,headers,labels,values,label_width,val_width,val_precis,optional_header)
% function dyntable(title,headers,labels,values,label_width,val_width,val_precis)
% Inputs:
%   options_    [structure]         Dynare options structure
%   title       [string]            Table title
%   headers     [n by nchar]        character array of labels for header row
%   labels      [n by nchar]        character array of labels for label column
%   values      [matrix]            matrix of values to display
%   label_width [scalar]            Width of the label
%   val_width   [scalar]            Width of value column
%   val_precis  [integer]           precision of displayed values

while in 4.4.x, the header is:

function dyntable(title,headers,labels,values,label_width,val_width, val_precis)

So if you call directly this routine in your mod file, you need at least to add options_ as a first argument.



i added options_ , than i got a different error message

Preprocessing completed.

Index exceeds matrix dimensions.

Error in rbc_cooley (line 15)

evalin(‘base’,fname) ;

rbc_cooley.mod (2.3 KB)


I can run your file in 4.5.1. This seems like a path conflict with a previous version.


thanks Johannes,
the cooley mod run after i exited and restarted.

However, 4.5.1 produced another error that wasn’t there in 4.4.3 (see file attached)

Using 64-bit preprocessor
Starting Dynare (version 4.5.1).
Starting preprocessing of the model file …
Found 33 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
  • order 2
    Processing outputs …
    Preprocessing completed.

Index exceeds matrix dimensions.

Error in nk_soe_oil_rbc (line 15)

Error in dynare (line 223)
evalin(‘base’,fname) ;

Error in W3_2b (line 29)
dynare nk_soe_oil_rbc.mod

W3_2b.m (2.2 KB)


You did not provide all files to run the code. But my guess is that Dynare 4.5’s dates class collides with your variable dates. Please rename that variable to something not already used.


Yes that was it. Thanks a million, you saved my day.


I recently installed Matlab 2017b and I would like to point out an issue that exists with this new version of Matlab. Somewhere inside the matlab code running in the background of dynare, there is a function called isfile. In this version of Matlab isfile is a build-in function. Hence, when the code is running it consistently gives the following warning:

Warning: Function isfile has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.

In path (line 109)
In addpath (line 94)
In initialize_dates_toolbox (line 20)
In initialize_dseries_toolbox (line 20)
In dynare_config (line 246)
In dynare (line 63)

This warning gets repeated multiple times and based on my experience (having previously used Matlab 2013a, where this issue was not present) significantly slows down the computation time of the code that is running in dynare.


@sp1589 Which version are you using? This issue should have been fixed in Dynare 4.5.3.


I am using the latest version (4.5.3)


@sp1589 Can you please provide the full log-file of that Dynare run?


@jpfeifer Sure. The log file is attached. (1.8 KB)


@sp1589 The relevant line 20 of initialize_dates_toolbox.m is addpath([dates_src_root '/utilities/is'])
which adds matlab\modules\dates\src. There is no isfile.m in that directory.

What does
which isfile


@jpfeifer Apologies for the “scare”. The issue was apparently stemming from some kind of an interference with Dynare 4.4.3 since I had forgotten to delete it before I started using 4.5.3.