diff --git a/matlab/dyn_saveas.m b/matlab/dyn_saveas.m index 3b00f0aeef634ba2d314bbe5cffd87dda863d9dd..0334b9f2b751b946a0e9704962e81253720b1961 100644 --- a/matlab/dyn_saveas.m +++ b/matlab/dyn_saveas.m @@ -13,7 +13,7 @@ function dyn_saveas(h,fname,DynareOptions) % SPECIAL REQUIREMENTS % none -% Copyright (C) 2012 Dynare Team +% Copyright (C) 2012-2013 Dynare Team % % This file is part of Dynare. % @@ -31,11 +31,7 @@ function dyn_saveas(h,fname,DynareOptions) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. if any(strcmp('eps',cellstr(DynareOptions.graph_format))) - if exist('OCTAVE_VERSION') - eval(['print -depsc2 ' fname '.eps']); % still need to be fixed to take handle into account - else - print(h,'-depsc2',[fname,'.eps']) - end + print(h,'-depsc2',[fname,'.eps']) end if any(strcmp('pdf',cellstr(DynareOptions.graph_format))) if exist('OCTAVE_VERSION')