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);