| External Interfaces/API Reference |     ![]()  | 
Make an mxArray persist after the MEX-file completes
C Syntax
Arguments
array_ptr
   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-function finishes. If you want the mxArray to persist through multiple invocations of the MEX-function, you must call mexMakeArrayPersistent.
See Also
mexAtExit, mexLock, mexMakeMemoryPersistent, and the mxCreate functions.
   | mexLock | mexMakeMemoryPersistent | ![]()  |