External Interfaces Reference |
int engPutFull( Engine *ep, /* engine pointer */ char *name, /* full array name */ int m, /* number of rows */ int n, /* number of columns */ double *pr, /* pointer to real part */ double *pi /* pointer to imaginary part */ ) { mxArray *pmat; int retval; pmat = mxCreateDoubleMatrix(0, 0, mxCOMPLEX); mxSetM(pmat, m); mxSetN(pmat, n); mxSetPr(pmat, pr); mxSetPi(pmat, pi); retval = engPutVariable(ep, name, pmat); /* Set pr & pi in array struct to NULL so it can be cleared. */ mxSetPr(pmat, NULL); mxSetPi(pmat, NULL); mxDestroyArray(pmat); return(retval); }
See Also
engGetVariable
, mxCreateDoubleMatrix
engPutArray (Obsolete) | engPutMatrix (Obsolete) |
© 1994-2005 The MathWorks, Inc.