From 604efa685f4713550e5ca681654004508ccfcacb Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@jrc.ec.europa.eu> 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 38ed34ee90..34c68a4afa 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 <http://www.gnu.org/licenses/>. -Nc = min(Nc, length(X)/2); +Nc = floor(min(Nc, length(X)/2)); if mod(Nc,2), Nc=Nc-1; end -- GitLab