From 800de3fcc93d090557ed819da1a8fa50d9fdc22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= <stephane.adjemian@univ-lemans.fr> Date: Mon, 23 Jun 2014 16:06:29 +0200 Subject: [PATCH] Fixed bug (varobs is a field of options_). --- matlab/dynare_estimation_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 90189e7c85..6cb9f4d446 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -70,7 +70,7 @@ end % Check that a variable is not declared as observed more than once. if ~isequal(options_.varobs,unique(options_.varobs)) for i = 1:options_.number_of_observed_variables - if length(strmatch(options_.varobs{i},varobs))>1 + if length(strmatch(options_.varobs{i},options_.varobs))>1 error(['A variable cannot be declared as observed more than once (' options_.varobs{i} ')!']) end end -- GitLab