Text based waitbar

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. mathworks.com/matlabcentral/ … ange/16213 or similar.

Best

Gianni

For example could add at line 103 of random_walk_metropolis_hastings.m

          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