From b2efc7a604096e1b7e442ae0ae29ad7f1741bdf4 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 7 Jan 2021 21:43:31 +0100 Subject: [PATCH] smoother2histval.m: fix bug when variable names are similar --- matlab/smoother2histval.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/smoother2histval.m b/matlab/smoother2histval.m index 3ef7e438e..f59c0ebf7 100644 --- a/matlab/smoother2histval.m +++ b/matlab/smoother2histval.m @@ -173,7 +173,7 @@ end data = zeros(M_.orig_maximum_endo_lag, length(invars)); k = M_.orig_maximum_endo_lag - M_.maximum_endo_lag + 1: M_.orig_maximum_lag for i = 1:length(invars) - if isempty(strmatch(invars{i}, M_.endo_names)) + if isempty(strmatch(invars{i}, M_.endo_names, 'exact')) % Skip exogenous continue end