From 6870010e9a947ba92d531b30ae9b8753bb79d00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Wed, 1 Sep 2010 22:12:38 +0200 Subject: [PATCH] Fixed bug related to the console mode (text waitbar). --- matlab/random_walk_metropolis_hastings_core.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/random_walk_metropolis_hastings_core.m b/matlab/random_walk_metropolis_hastings_core.m index cc48bd88e..447c29c11 100644 --- a/matlab/random_walk_metropolis_hastings_core.m +++ b/matlab/random_walk_metropolis_hastings_core.m @@ -249,7 +249,11 @@ for b = fblck:nblck, end% End of the simulations for one mh-block. record.AcceptationRates(b) = isux/j; if exist('OCTAVE_VERSION') || options_.console_mode - printf('\n'); + if exist('OCTAVE_VERSION') + printf('\n'); + else + fprintf('\n'); + end diary on; elseif ~whoiam close(hh);