From c7bb71199d5ff5ea45647f56d4c3d2ffa5933c11 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 18 Apr 2013 17:27:18 +0200
Subject: [PATCH] reporting: @reporting: open pdf file after compilation
 (Matlab only)

---
 matlab/reports/@report/compile.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/matlab/reports/@report/compile.m b/matlab/reports/@report/compile.m
index 14990e912d..9a7170e5d7 100644
--- a/matlab/reports/@report/compile.m
+++ b/matlab/reports/@report/compile.m
@@ -60,4 +60,8 @@ end
 fprintf(1, '\n\nDone.\n')
 disp('Your compiled report is located here:');
 disp(['     ' pwd filesep rfn '.pdf']);
+
+if ~exist('OCTAVE_VERSION')
+    open([pwd filesep rfn '.pdf']);
+end
 end
\ No newline at end of file
-- 
GitLab