mislocked

Determine if function is locked in memory

Syntax

mislocked
mislocked(fun)

Description

mislocked by itself returns logical 1 (true) if the currently running function is locked in memory, and logical 0 (false) otherwise. Functions that are locked cannot be removed with the clear function unless you first unlock them using the munlock function. You can use locking on functions that reside in MATLAB® .m files or .mex files.

mislocked(fun) returns logical 1 (true) if the function named fun is locked in memory, and logical 0 (false) otherwise.

See Also

| |

Was this topic helpful?