| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
#include "mex.h" void mexLock(void);
subroutine mexLock()
By default, MEX-files are unlocked, meaning you can clear them at any time. Call mexLock to prohibit clearing a MEX-file.
To unlock a MEX-file, you must call mexUnlock. Do not use the munlock function.
mexLock increments a lock count. If you call mexLock n times, call mexUnlock n times to unlock your MEX-file.
See the following examples in matlabroot/extern/examples/mex.
mexIsLocked, mexMakeArrayPersistent, mexMakeMemoryPersistent, mexUnlock, clear

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