From 0d4d085447114ff947df63209d3ee155d24d1a04 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 26 Nov 2013 17:22:01 +0100 Subject: [PATCH] fix try / catch statement for octave --- matlab/utilities/tests/mtest.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/utilities/tests/mtest.m b/matlab/utilities/tests/mtest.m index 36d68cba9..788ced58b 100644 --- a/matlab/utilities/tests/mtest.m +++ b/matlab/utilities/tests/mtest.m @@ -78,7 +78,8 @@ for i=1:nn fprintf(tid,str); end fprintf(tid,['LOG = NaN;\n']); - fprintf(tid,['catch exception\n']); + fprintf(tid,'catch\n'); + fprintf(tid,'exception = lasterror;\n'); fprintf(tid,['LOG = getReport(exception,''extended'');\n']); fprintf(tid,['T = NaN;\n']); fprintf(tid,['t = NaN;\n']);