From eb75397e0f2dd3ee6361e3c335e26661495a873c Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 26 Nov 2013 17:35:27 +0100 Subject: [PATCH] fix try / catch statement in tests for octave --- matlab/cubature_with_gaussian_weight.m | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/matlab/cubature_with_gaussian_weight.m b/matlab/cubature_with_gaussian_weight.m index 032ed196f..1e0117908 100644 --- a/matlab/cubature_with_gaussian_weight.m +++ b/matlab/cubature_with_gaussian_weight.m @@ -137,7 +137,8 @@ function m = ee(n,i,j) %$ try %$ [nodes,weights] = cubature_with_gaussian_weight(d,3); %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended'); @@ -177,7 +178,8 @@ function m = ee(n,i,j) %$ try %$ [nodes,weights] = cubature_with_gaussian_weight(d,3); %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended'); @@ -218,7 +220,8 @@ function m = ee(n,i,j) %$ try %$ [nodes,weights] = cubature_with_gaussian_weight(d,3); %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended'); @@ -253,7 +256,8 @@ function m = ee(n,i,j) %$ try %$ [nodes,weights] = cubature_with_gaussian_weight(d,3); %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended'); @@ -292,7 +296,8 @@ function m = ee(n,i,j) %$ try %$ [nodes,weights] = cubature_with_gaussian_weight(d,5); %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended'); @@ -337,7 +342,8 @@ function m = ee(n,i,j) %$ nodes %$ weights %$ t(1) = 1; -%$ catch exception +%$ catch +%$ exception = lasterror; %$ t = t(1); %$ T = all(t); %$ LOG = getReport(exception,'extended');