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 (mandn) and typeAssociated data arrays, such as
irandjcfor 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
mxGetFieldormxGetFieldByNumberfunctionsReturned by the
mxGetCellfunction
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