From 8e751be5eed36a35ad75139176150fe0ef3e6acc Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Wed, 14 Oct 2015 11:34:39 +0200 Subject: [PATCH] bug fix for non integer Nc --- matlab/mcmc_ifac.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/mcmc_ifac.m b/matlab/mcmc_ifac.m index 38ed34ee9..34c68a4af 100644 --- a/matlab/mcmc_ifac.m +++ b/matlab/mcmc_ifac.m @@ -29,7 +29,7 @@ function Ifac = mcmc_ifac(X, Nc) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -Nc = min(Nc, length(X)/2); +Nc = floor(min(Nc, length(X)/2)); if mod(Nc,2), Nc=Nc-1; end