Thread Subject: clear all; inmem memory still full

Subject: clear all; inmem memory still full

From: Dan Haeg

Date: 12 Nov, 2008 04:45:03

Message: 1 of 2

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

Subject: clear all; inmem memory still full

From: Scott

Date: 20 Aug, 2009 17:02:04

Message: 2 of 2

"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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
memory Scott 20 Aug, 2009 13:04:33
clear all Scott 20 Aug, 2009 13:04:33
rssFeed for this Thread
 

MATLAB Central Terms of Use

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.

Contact us at files@mathworks.com