k-order perturbation: fixed bug in M-file evaluation

time-shift
Sébastien Villemot 2011-05-20 10:54:08 +02:00
parent 88d58a3cfc
commit f5b35df24f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ DynamicModelMFile::eval(const Vector &y, const Vector &x, const Vector &modParam
memcpy((void *) (mxGetPr(prhs[0])), (void *) y.base(), y.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[1])), (void *) x.base(), x.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[2])), (void *) modParams.base(), modParams.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[3])), (void *) ySteady.base(), modParams.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[3])), (void *) ySteady.base(), ySteady.length()*sizeof(double));
int retVal = mexCallMATLAB(nlhs_dynamic, plhs, nrhs_dynamic, prhs, DynamicMFilename.c_str());
if (retVal != 0)