Merge branch 'master' into ecb-master

time-shift
Stéphane Adjemian(Charybdis) 2018-07-28 10:54:27 +02:00
commit ecb41ef4c0
2 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,11 @@ function ida = get_aux_variable_id(var)
global M_
if isempty(var)
ida = 0;
return
end
if ischar(var)
id = strmatch(var, M_.endo_names, 'exact');
if isempty(var)

View File

@ -144,7 +144,7 @@ if tt5
if any(x(id5)-p3(id5)<0) || any(x(id5)-p4(id5)>0)
logged_prior_density = -Inf ;
if nargout ==4
info=id5((x(id5)-p3(id5)<0) || (x(id5)-p4(id5)>0));
info=id5(any(x(id5)-p3(id5)<0) || any(x(id5)-p4(id5)>0));
end
return
end