Path: news.mathworks.com!not-for-mail
From: "Dan Haeg" <haegd@msoe.edu>
Newsgroups: comp.soft-sys.matlab
Subject: clear all; inmem memory still full
Date: Wed, 12 Nov 2008 04:45:03 +0000 (UTC)
Organization: Milwaukee School of Engineering
Lines: 62
Message-ID: <gfdn0f$qok$1@fred.mathworks.com>
Reply-To: "Dan Haeg" <haegd@msoe.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226465103 27412 172.30.248.35 (12 Nov 2008 04:45:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Nov 2008 04:45:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475291
Xref: news.mathworks.com comp.soft-sys.matlab:500344


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