From 04b0e8aaa148d0214a0b70e441a569ca31e4fbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Tue, 26 May 2020 17:43:07 +0200 Subject: [PATCH] Bug fix related to missing aux variables if fourth argument is empty. --- matlab/backward/backward_model_irf.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/backward/backward_model_irf.m b/matlab/backward/backward_model_irf.m index 37952e613..a90ffeb33 100644 --- a/matlab/backward/backward_model_irf.m +++ b/matlab/backward/backward_model_irf.m @@ -99,7 +99,7 @@ end % Check fourth argument. If empty return the paths for all the endogenous variables. if isempty(listofvariables) - listofvariables = M_.endo_names; + listofvariables = M_.endo_names(1:M_.orig_endo_nbr); end if ~iscell(listofvariables) error('Fourth input argument has to be a cell of row char arrays or an empty object.')