Fixed bug related to the test on the number of input arguments.

time-shift
Stéphane Adjemian (Charybdis) 2013-06-12 10:21:27 +02:00
parent a71b770fec
commit 7fc92c96d9
1 changed files with 2 additions and 2 deletions

View File

@ -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.*/