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
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","refbook","filename")]);
where filename
is:
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename
is:
Version History
Introduced before R2006a
See Also
mxCalloc
| mxMalloc
| mxFree
| mexMakeArrayPersistent
| mexMakeMemoryPersistent