From 7fc92c96d9fd38c62aaec425437189816930d320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Wed, 12 Jun 2013 10:21:27 +0200 Subject: [PATCH] Fixed bug related to the test on the number of input arguments. --- mex/sources/mjdgges/mjdgges.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mex/sources/mjdgges/mjdgges.c b/mex/sources/mjdgges/mjdgges.c index 8d15061fc..551485d35 100644 --- a/mex/sources/mjdgges/mjdgges.c +++ b/mex/sources/mjdgges/mjdgges.c @@ -92,8 +92,8 @@ mexFunction(int nlhs, mxArray *plhs[], /* Check for proper number of arguments */ - if (nrhs < 2 || nrhs > 3 || nlhs == 0 || nlhs > 7) - DYN_MEX_FUNC_ERR_MSG_TXT("MJDGGES: takes 2 or 3 input arguments and between 1 and 7 output arguments."); + if (nrhs < 2 || nrhs > 4 || nlhs == 0 || nlhs > 7) + DYN_MEX_FUNC_ERR_MSG_TXT("MJDGGES: takes 2, 3 or 4 input arguments and between 1 and 7 output arguments."); /* Check that A and B are real matrices of the same dimension.*/