Small bug in pm3

Hi everyone,

I think that the variable “j” should be “i” in lines 112 and 117 of pm3.m.

Otherwise, if you’re unlucky enough to have the same number of parameters as observations, you’ll get a new plot window for each variable when displaying Smoothed Variables or Filtered Variables, and each plot only appears in the top left corner of the window. This behaviour can crash Matlab if the number of parameters is large.

cheers
Jamie

Hi,

Thanks for reporting this. It has been fixed in the unstable branch of Dynare, and will be incorporated in the next stable release (4.0.3).

Sébastien

Just noticed another bit that needs to be edited: line 142 should read:

if(~(i==nvar))  hh = figure('Name',[name3 ' ' int2str(figunumber+1)]);  end;

Otherwise you get a blank plot window at the end of each set of plots.

cheers
Jamie

Thanks, this has been incorporated.

Sébastien