Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

inmem - Names of M-files, 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 M-files 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 M- 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 M-files 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 M- 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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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