mexUnlock (C and Fortran) - Allow MEX-file to be cleared from memory
C Syntax
#include "mex.h"
void mexUnlock(void);
Fortran Syntax
mexUnlock()
Description
By default, MEX-files are unlocked, meaning that a user can
clear them at any time. Calling mexLock locks
a MEX-file so that it cannot be cleared. Calling mexUnlock removes
the lock so that the MEX-file can be cleared.
mexLock increments a lock count. If you
called mexLock n times, you
must call mexUnlock n times
to unlock your MEX-file.
C Examples
See mexlock.c
in the matlabroot/extern/examples/mex folder
.
See Also
mexIsLocked, mexLock, mexMakeArrayPersistent, mexMakeMemoryPersistent
 | mexSetTrapFlag (C and Fortran) | | mexWarnMsgIdAndTxt (C and Fortran) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit