Preserve parameter validity status in (nrhs == 2) case.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
parent
d78aae5276
commit
714e052822
@ -388,7 +388,7 @@ args_ok(int nlhs, int nrhs, const mxArray *prhs[])
|
|||||||
ok = ok && (mxGetFieldNumber(prhs[0], "ZCORN" ) >= 0);
|
ok = ok && (mxGetFieldNumber(prhs[0], "ZCORN" ) >= 0);
|
||||||
ok = ok && (mxGetFieldNumber(prhs[0], "ACTNUM" ) >= 0);
|
ok = ok && (mxGetFieldNumber(prhs[0], "ACTNUM" ) >= 0);
|
||||||
|
|
||||||
if (nrhs == 2) {
|
if (ok && (nrhs == 2)) {
|
||||||
ok = mxIsDouble(prhs[1]) && (mxGetNumberOfElements(prhs[1]) == 1);
|
ok = mxIsDouble(prhs[1]) && (mxGetNumberOfElements(prhs[1]) == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user