"Dan Haeg" <haegd@msoe.edu> wrote in message <gfdn0f$qok$1@fred.mathworks.com>...
> Since I have not used simulink in the current session of matlab that I am running, why do I have simulink in memory.
>
> >> clear all
> >> inmem
> ans =
> 'Simulink.Preferences.schema'
> 'Simulink.Preferences.getInstance'
> 'Simulink.EditorPrefs.schema'
> 'Simulink.FontPrefs.schema'
> 'Simulink.FontPrefs.FontPrefs'
> 'slroot'
> 'RTW.TargetRegistry.schema'
> 'Simulink.ExtModeTransports.schema'
> 'dataobjectwizard\private\cusattic'
> 'mpt.SLDataObjectCustomizer.schema'
> 'mpt.RTWBuildCustomizer.schema'
> 'mpt.MiscCustomizer.schema'
> 'workspacefunc'
>
> I started a new session with the following code:
>
> ! matlab.exe &
> quit
>
> In the new session:
> >> inmem
> ans =
> 'matlabrc'
> 'pathdef'
> 'userpath'
> 'ispc'
> 'filesep'
> 'pwd'
> 'usejava'
> 'hgrc'
> 'colordef'
> 'whitebg'
> 'jet'
> 'dot'
> 'opaque.char'
> 'initprefs'
> 'initdesktoputils'
> 'findallwinclasses'
> 'path'
> 'reporterrorlogs'
> 'now'
> 'datenum'
> 'javachk'
> 'mdbstatus'
> >> clear all
> >> inmem
> ans =
> Empty cell array: 0-by-1
> >> version
> ans =
> 7.6.0.324 (R2008a)
>
> Matlab is now taking up 100MB less memory.
>
> Does anyone know why I can only clear memory sometimes? Thanks for any ideas.
> Dan
Dan,
Have you figured out how to clear the memory completely? Is it possible to just clear or close one of variables, such as 'Simulink.Preferences.schema'.
Scott
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.