MATLAB Function Reference Previous page   Next Page
munlock

Allow clearing M-file or MEX-file from memory

Syntax

Description

munlock unlocks the currently running M-file or MEX-file in memory so that subsequent clear functions can remove it.

munlock fun unlocks the M-file or MEX-file named fun 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 M-files or MEX-files that have been locked with mlock.

munlock('fun') is the function form of munlock.

Examples

The function testfun begins with an mlock statement.

When you execute this function, it becomes locked in memory. You can check this using the mislocked function.

Using munlock, you unlock the testfun function in memory. Checking its status with mislocked shows that it is indeed unlocked at this point.

See Also

mlock, mislocked, persistent


Previous page  multibandwrite namelengthmax Next page

© 1994-2005 The MathWorks, Inc.