From 84f0d6c7daad7c34fc22a76a541d1004528c3524 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Fri, 5 Apr 2013 17:16:17 +0200 Subject: [PATCH] bug fix for octave under windows and hybrid unix-windows clusters --- matlab/dyn_saveas.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/matlab/dyn_saveas.m b/matlab/dyn_saveas.m index 0334b9f2b..fea240e45 100644 --- a/matlab/dyn_saveas.m +++ b/matlab/dyn_saveas.m @@ -31,6 +31,13 @@ function dyn_saveas(h,fname,DynareOptions) % along with Dynare. If not, see . if any(strcmp('eps',cellstr(DynareOptions.graph_format))) + if exist('OCTAVE_VERSION') + fname = strrep(fname,'/',filesep); + fname = strrep(fname,'\',filesep); + if DynareOptions.nodisplay && ispc, + set(h, 'Visible','on'); + end + end print(h,'-depsc2',[fname,'.eps']) end if any(strcmp('pdf',cellstr(DynareOptions.graph_format)))