Names of functions, MEX-files, classes in memory
M = inmem
[M,X] = inmem
[M,X,C] = inmem
[...] = inmem('-completenames')
[...] = inmem('-completenames') returns not only the names of the currently loaded function and MEX-files, but the path and filename extension for each as well. No additional information is returned for loaded classes.
List the functions that remain in memory after calling the magic function.
clear all magic(10); M = inmem
M = 'workspacefunc' 'magic'
The function list includes magic and additional functions that are in memory in your current session.
Call a sample MEX-function named arrayProduct, and then verify that the MEX-function is in memory.
clear all sampleFolder = fullfile(matlabroot,'extern','examples','mex'); addpath(sampleFolder); s = 5; A = [1.5, 2, 9]; B = arrayProduct(s,A); [M,X] = inmem('-completenames'); X
X = 'matlabroot\extern\examples\mex\arrayProduct.mexw64'