Allow clearing functions from memory
munlock unlocks the currently running
.mex function in memory so that
clear functions can remove it.
munlock fun unlocks the
.mex file named
from memory. By default, these files are unlocked so that changes to the file are picked
up. Calls to munlock are needed only to unlock
.mex functions that have been locked with
munlock(funName) is the function form of
funName as a character vector
or string scalar.
testfun begins with an
function testfun mlock . .
When you execute this function, it becomes locked in memory. You can check this using
testfun mislocked testfun ans = 1
munlock, you unlock the
in memory. Checking its status with
mislocked shows that it is indeed
unlocked at this point.
munlock testfun mislocked testfun ans = 0