28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2inmem<br />

Purpose Return functions in memory<br />

Syntax M = inmem<br />

[M, X] = inmem<br />

[M, X, J] = inmem<br />

[...] = inmem('-completenames')<br />

Description M = inmem returns a cell array of strings containing the names of the M-files<br />

that are currently loaded.<br />

Examples Example 1<br />

inmem<br />

[M, X] = inmem returns an additional cell array X containing the names of the<br />

MEX-files that are currently loaded.<br />

[M, X, J] = inmem also returns a cell array J containing the names of the<br />

Java classes that are currently loaded.<br />

[...] = inmem('-completenames') returns not only the names of the<br />

currently loaded M- and MEX-files, but the path and filename extension for<br />

each as well. No additional information is returned for loaded Java classes.<br />

This example lists the M-files that are required to run erf.<br />

clear all; % Clear the workspace<br />

erf(0.5);<br />

M = inmem<br />

M =<br />

'erf'<br />

Example 2<br />

Generate a plot, and then find the M- and MEX-files that had been loaded to<br />

perform this operation:<br />

clear all<br />

surf(peaks)<br />

[m x] = inmem('-completenames');<br />

2-1177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!