| MATLAB Application Program Interface | Search  Help Desk |
| matGetFull (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 you should call
matGetArray followed by the appropriate mxGet routines
For example,
int matGetFull(MATFile *fp, char *name, int *m, int *n,
double **pr, double **pi)
{
mxArray *parr;
/* Get the matrix. */
parr = matGetArray(fp, name);
if (parr == NULL)
return(1);
if (!mxIsDouble(parr)) {
mxDestroyArray(parr);
return(1);
}
/* Set up return args. */
*m = mxGetM(parr);
*n = mxGetN(parr);
*pr = mxGetPr(parr);
*pi = mxGetPi(parr);
/* Zero out pr & pi in array struct so the mxArray can be
destroyed. */
mxSetPr(parr, (void *)0);
mxSetPi(parr, (void *)0);
mxDestroyArray(parr);
return(0);
}
See Also
matGetArray