smoother2histval.m: fix bug when variable names are similar

time-shift
Johannes Pfeifer 2021-01-07 21:43:31 +01:00
parent 4434edae0b
commit b2efc7a604
1 changed files with 1 additions and 1 deletions

View File

@ -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