Skip to content
Snippets Groups Projects
Commit d6c5e152 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

datatomfile: if no second argument, then include all endogenous variables

(cherry picked from commit 6ef638a4)
parent 531ef878
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ function datatomfile (s,var_list) ...@@ -13,7 +13,7 @@ function datatomfile (s,var_list)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2010 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -35,7 +35,7 @@ global M_ oo_ ...@@ -35,7 +35,7 @@ global M_ oo_
sm=[s,'.m']; sm=[s,'.m'];
fid=fopen(sm,'w') ; fid=fopen(sm,'w') ;
if size(var_list,1) == 0 if nargin < 2 || size(var_list,1) == 0
var_list = M_.endo_names(1:M_.orig_endo_nbr,:); var_list = M_.endo_names(1:M_.orig_endo_nbr,:);
end end
n = size(var_list,1); n = size(var_list,1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment