diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m
index 9486efea40e7742e8cf52df06db53a67389f1476..98543ff0d8aea6c48b59c655e82994666a602cd4 100644
--- a/matlab/reports/@graph/createGraph.m
+++ b/matlab/reports/@graph/createGraph.m
@@ -138,6 +138,7 @@ if isempty(o.figname)
     tn = tempname;
     if strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64')
         tn = strrep(tn, '\', '/');
+        tn = strrep(tn, '_', '\_');
     end
     o.figname = [tn '.tex'];
 end