External Interfaces Reference Previous page   Next Page
mxDestroyArray

Free dynamic memory allocated by mxCreate

Fortran Syntax

Arguments

pm
   Pointer to the mxArray that you want to free.

Description

mxDestroyArray deallocates the memory occupied by the specified mxArray. mxDestroyArray not only deallocates the memory occupied by the mxArray's characteristics fields (such as m and n), but also deallocates all the mxArray's associated data arrays (such as pr, pi, ir, and/or jc). You should not call mxDestroyArray on an mxArray you are returning on the left-hand side.

See Also

mxCalloc, mxFree, mexMakeArrayPersistent, mexMakeMemoryPersistent


Previous page  mxCreateStructMatrix mxDuplicateArray Next page

© 1994-2005 The MathWorks, Inc.