From 85905cbb1d8c43e80b677de2dfffeea7d28761f7 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 12 Dec 2013 15:30:44 +0100 Subject: [PATCH] reporting: for windows filenames escape underscore --- matlab/reports/@graph/createGraph.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m index 9486efea4..98543ff0d 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