text based waitbar

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

text based waitbar

Postby lombard » Tue May 05, 2009 2:06 pm

Hi,

this is simply a proposal. UsingMatlab in a non-graphical environment one loses the waitbar. The waitbar is handy e.g. for long MCMC. My proposal is to allow for a text-based waitbar e.g. http://www.mathworks.com/matlabcentral/ ... ange/16213 or similar.

Best

Gianni
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel

Re: text based waitbar

Postby lombard » Tue May 05, 2009 2:52 pm

For example could add at line 103 of random_walk_metropolis_hastings.m

Code: Select all
          if exist('progress','file');
              progress(prtfrc,sprintf('\n Done  %2.2f pc.; Acceptance rate %2.2f pc. \n',prtfrc*100,isux/j*100));
          end

(and maybe suppress the Matlab waitbar altogether...)

Gianni
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 11 guests