Skip to content
Snippets Groups Projects
Commit ed22b6c4 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Make datatomfile.m datafiles save name of creator and date

parent 15f95cec
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ function datatomfile (s,var_list, names)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-2010 Dynare Team
% Copyright (C) 2001-2016 Dynare Team
%
% This file is part of Dynare.
%
......@@ -61,7 +61,9 @@ for i=1:n
ivar(i) = i_tmp;
end
end
stack = dbstack;
fprintf(fid,'%% Dataset generated by %s.\n',stack(2).file);
fprintf(fid,['%% ' datestr(now,0) '\n']);
% Save the selected data.
for i = 1:n
fprintf(fid,[strtrim(names(i,:)), ' = ['],'\n') ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment