From 1d6ea1556d4175c4b8ed0b148efeada04c98fff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Mon, 2 Sep 2013 23:27:04 +0200 Subject: [PATCH] Fixed bug (missing condition on the number of returned arguments). --- matlab/utilities/tests/mtest.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matlab/utilities/tests/mtest.m b/matlab/utilities/tests/mtest.m index ef325b99c..b015b8892 100644 --- a/matlab/utilities/tests/mtest.m +++ b/matlab/utilities/tests/mtest.m @@ -112,8 +112,10 @@ for i=1:nn fprintf(['Output argument n°' int2str(j) ' didn''t give the expected result.\n']); end end - info(i,4) = {tmp}; - info(i,5) = {NaN}; + if nargout>1 + info(i,4) = {tmp}; + info(i,5) = {NaN}; + end check = 0; else if nargout>1