External Interfaces Reference Previous page   Next Page
mexMakeArrayPersistent

Make mxArray persist after MEX-file completes

Fortran Syntax

Arguments

pm
   Pointer to an mxArray created by an mxCreate* routine.

Description

By default, mxArrays allocated by mxCreate* routines are not persistent. The MATLAB memory management facility automatically frees nonpersistent mxArrays when the MEX-file finishes. If you want the mxArray to persist through multiple invocations of the MEX-file, you must call mexMakeArrayPersistent.

See Also

mexAtExit, mexLock, mexMakeMemoryPersistent, and the mxCreate functions.


Previous page  mexLock mexMakeMemoryPersistent Next page

© 1994-2005 The MathWorks, Inc.