Small bug in pm3

As Dynare 4 is now the main version, this forum is now closed. Please, post
on the Dynare Help forum
Forum rules
As Dynare 4 is the current Dynare version, there forum is now close. Post new question in the Dynare Help Forum.

Small bug in pm3

Postby JamieHall » Thu Feb 26, 2009 5:21 am

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
JamieHall
 
Posts: 20
Joined: Wed Feb 11, 2009 4:42 am

Re: Small bug in pm3

Postby SébastienVillemot » Thu Feb 26, 2009 11:16 am

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
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Small bug in pm3

Postby JamieHall » Sun Mar 01, 2009 11:16 pm

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
JamieHall
 
Posts: 20
Joined: Wed Feb 11, 2009 4:42 am

Re: Small bug in pm3

Postby SébastienVillemot » Thu Mar 05, 2009 11:01 am

Thanks, this has been incorporated.

Sébastien
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare version 4

Who is online

Users browsing this forum: No registered users and 2 guests