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