From 9454862142d83e914633481ec82aaf103041475c Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 26 Nov 2013 16:55:04 +0100 Subject: [PATCH] internals: replace % for both matlab and octave with %% --- matlab/utilities/tests/mtest.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matlab/utilities/tests/mtest.m b/matlab/utilities/tests/mtest.m index 403e85061..36d68cba9 100644 --- a/matlab/utilities/tests/mtest.m +++ b/matlab/utilities/tests/mtest.m @@ -74,9 +74,7 @@ for i=1:nn fprintf(tid,['try\n']); for j=b1(i):b2(i) str = sprintf('%s \n',file{j}(4:end)); - if isoctave - str = regexprep(str, '%', '%%'); - end + str = regexprep(str, '%', '%%'); fprintf(tid,str); end fprintf(tid,['LOG = NaN;\n']);