| MATLAB Function Reference | ![]() |
Syntax
munlock
munlock fun
munlock('fun')
Description
unlocks the currently running M-file in memory so that subsequent munlock
clear functions can remove it.
unlocks the M-file named munlock fun
fun from memory. By default, M-files are unlocked so that changes to the M-file are picked up. Calls to munlock are needed only to unlock M-files that have been locked with mlock.
munlock('fun')
is the function form of munlock.
Examples
The function testfun begins with an mlock statement.
function testfun mlock . .
When you execute this function, it becomes locked in memory. This can be checked using the mislocked function.
testfun
mislocked testfun
ans =
1
Using munlock, you unlock the testfun function in memory. Checking its status with mislocked shows that it is indeed unlocked at this point.
munlock testfun
mislocked testfun
ans =
0
See Also
| mu2lin | NaN | ![]() |