From 2e66335d0bee295be3cb5acf023fd39bec555193 Mon Sep 17 00:00:00 2001 From: michel Date: Fri, 13 Jan 2006 16:07:06 +0000 Subject: [PATCH] v4 dynare_estimation.m: corrected bug on options_.trend_coeffs git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@597 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/dynare_estimation.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m index daebdbb9a..473616a12 100644 --- a/matlab/dynare_estimation.m +++ b/matlab/dynare_estimation.m @@ -86,7 +86,7 @@ ub = bounds(:,2); bayestopt_.lb = lb; bayestopt_.ub = ub; -if isempty(options_.trend_coeffs) +if ~isfield(options_,'trend_coeffs') bayestopt_.with_trend = 0; else bayestopt_.with_trend = 1; @@ -94,7 +94,7 @@ else trend_coeffs = options_.trend_coeffs; nt = length(trend_coeffs); for i=1:n_varobs - if i > length(trend_coeffs) | isempty(trend_coeffs{i}) + if i > length(trend_coeffs) bayestopt_.trend_coeff{i} = '0'; else bayestopt_.trend_coeff{i} = trend_coeffs{i};