Skip to content

inmem

matlab_compat · scripts/matlab_compat/inmem.m

: M = inmem ()
: [M, X] = inmem ()
: [M, X] = inmem ("-completenames")

Return the names of functions currently loaded in memory.

M is a cell column of M-file (and other non-MEX) function names currently loaded. X is a cell column of loaded MEX function names. With "-completenames", each entry is the full path returned by which when available.

Built-in functions are omitted (MATLAB R2026a). mlock / mexLock keep a function loaded across clear functions / clear all; munlock does not by itself remove a name from inmem until the function is cleared.