From 40fc16e618c302b02e1ba93ef3d22283d6cd1295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 6 Jun 2012 16:31:20 +0200 Subject: [PATCH] Remove MATLAB short-circuit operators --- matlab/non_linear_dsge_likelihood.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/non_linear_dsge_likelihood.m b/matlab/non_linear_dsge_likelihood.m index e245e009c..a1e76ef07 100644 --- a/matlab/non_linear_dsge_likelihood.m +++ b/matlab/non_linear_dsge_likelihood.m @@ -151,7 +151,7 @@ nvobs = DynareDataset.info.nvobs; %------------------------------------------------------------------------------ % Return, with endogenous penalty, if some parameters are smaller than the lower bound of the prior domain. -if (DynareOptions.mode_compute~=1) & any(xparam1BayesInfo.ub) +if (DynareOptions.mode_compute~=1) && any(xparam1>BayesInfo.ub) k = find(xparam1>BayesInfo.ub); fval = penalty+sum((xparam1(k)-BayesInfo.ub(k)).^2); exit_flag = 0;