| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
munlock
munlock fun
munlock('fun')
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.
The function testfun begins with an mlock statement.
function testfun mlock . .
When you execute this function, it becomes locked in memory. You can check this using the mislocked function.
testfun
mislocked testfun
ans =
1Using 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![]() | multibandwrite | namelengthmax | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |