Skip to Main Content Skip to Search
Product Documentation

inmem - Names of functions, MEX-files, Sun Java classes in memory

Syntax

M = inmem
[M, X] = inmem
[M, X, J] = inmem
[...] = inmem('-completenames')

Description

M = inmem returns a cell array of strings containing the names of the functions that are currently loaded.

[M, X] = inmem returns an additional cell array X containing the names of the MEX-files that are currently loaded.

[M, X, J] = inmem also returns a cell array J containing the names of the Java classes that are currently loaded.

[...] = 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 Java classes.

Examples

Example 1

This example lists the functions that are required to run erf.

clear all;        % Clear the workspace
erf(0.5);

M = inmem
M = 
   'erf'

Example 2

Generate a plot, and then find the function and MEX-files that had been loaded to perform this operation:

clear all
surf(peaks)

[m x] = inmem('-completenames');

m{1:5}
ans =
   F:\matlab\toolbox\matlab\general\usejava.m
ans =
   F:\matlab\toolbox\matlab\graph3d\private\surfchk.m
ans =
   F:\matlab\toolbox\matlab\graphics\gcf.m
ans =
   F:\matlab\toolbox\matlab\datatypes\@opaque\char.m
ans =
   F:\matlab\toolbox\matlab\graphics\findall.m

x
x = 
   Empty cell array: 0-by-1

See Also

clear

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS