Bumped matlab version condition in print routine.

It seems that the matlab documentation about datetime is
incorrect. This routine is unknown in R2015a (and R2015b acording to
Nikola Bokan). If matlab version is smaller than R2016a, we call
datestr instead.
parent 1fb2ee89
......@@ -26,7 +26,7 @@ end
fid = fopen(sprintf('%s.spc', basename), 'w');
% Print creation date
if ~isoctave() && ~verLessThan('matlab','8.4')
if ~isoctave() && ~verLessThan('matlab','9.0')
fprintf(fid, '# File created on %s by Dynare.\n\n', datetime());
else
fprintf(fid, '# File created on %s by Dynare.\n\n', datestr(now));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment