| MATLAB Application Program Interface | Search  Help Desk |
| engPutFull (Obsolete) | See Also |
V4 Compatible
This function is obsolete; it should not appear in a MATLAB 5 program. To use this function in existing code, use the-V4 option of the mex script.
In MATLAB 5 engine applications, call
mxCreateDoubleMatrix and engPutArrayFor example,
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);
mxSetName(pmat, name);
mxSetM(pmat, m);
mxSetN(pmat, n);
mxSetPr(pmat, pr);
mxSetPi(pmat, pi);
retval = engPutArray(ep, 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
engGetArray, mxCreateDoubleMatrix