Bug fix related to missing aux variables if fourth argument is empty.

time-shift
Stéphane Adjemian (Charybdis) 2020-05-26 17:43:07 +02:00
parent a6ea878627
commit 04b0e8aaa1
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 1 additions and 1 deletions

View File

@ -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.')