diff --git a/matlab/reports/@graph/writeGraphFile.m b/matlab/reports/@graph/writeGraphFile.m
index f3b175f8b2530177afa2b0de6be7949f8696d4dc..6d8931d2bf09aa3da32aef9a23d8d16202b723df 100644
--- a/matlab/reports/@graph/writeGraphFile.m
+++ b/matlab/reports/@graph/writeGraphFile.m
@@ -40,6 +40,8 @@ end
 
 if isempty(o.figname)
     o.figname = sprintf('%s/pg%d_sec%d_row%d_col%d.tex', o.figDirName, pg, sec, row, col);
+else
+    o.figname = [o.figDirName '/' o.figname];
 end
 
 [fid, msg] = fopen(o.figname, 'w');