mxDestroyArray (Fortran)
Free dynamic memory allocated by MXCREATE* functions
Fortran Syntax
#include "fintrf.h" subroutine mxDestroyArray(pm) mwPointer pm
Description
mxDestroyArray
deallocates memory for the specified
mxArray
including:
Characteristics fields of the
mxArray
, such as size (m
andn
) and typeAssociated data arrays, such as
ir
andjc
for sparse arraysFields of structure arrays
Cells of cell arrays
Do not call mxDestroyArray
on an
mxArray
:
Returned in a left-side argument of a MEX file
Returned by the
mxGetField
ormxGetFieldByNumber
functionsReturned by the
mxGetCell
function
Input Arguments
Examples
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/mx
Version History
Introduced before R2006a
See Also
mxCalloc
| mxMalloc
| mxFree
| mexMakeArrayPersistent
| mexMakeMemoryPersistent