|
"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
|