Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!35g2000pry.googlegroups.com!not-for-mail
From: Praetorian <ashish.sadanandan@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: clear all does not clear all memory?
Date: Thu, 4 Dec 2008 13:33:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 24
Message-ID: <34813a0b-28df-4e25-8a2f-a790fde16603@35g2000pry.googlegroups.com>
References: <gh91ci$m52$1@fred.mathworks.com>
NNTP-Posting-Host: 24.8.188.226
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1228426382 24379 127.0.0.1 (4 Dec 2008 21:33:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 4 Dec 2008 21:33:02 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 35g2000pry.googlegroups.com; posting-host=24.8.188.226; 
	posting-account=uxNuEQoAAABwxsrGxAKeLxAj2hdO1tck
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) 
	Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:505065


On Dec 4, 9:44=A0am, "Joao " <joao_ama...@mail.pt> wrote:
> Hi all,
>
> I've been running some simple, but quite lengthy calculations in Matlab (=
R14).
>
> In order to save RAM, for each cycle, variables are cleared by a "clear a=
ll" command.
>
> But this does not solve everything, since I can tell by the Windows task =
manager that memory is still taken by Matlab (wich can exceed 1.5 GB) even =
after my program has crashed or ended, and even if I cleared all variables =
with a "clear all". Memory is only freed if I shut down matlab and restart =
it.
>
> Is there any command that really clears all the cache?
>
> Thank you!

I don't know whether this will fix your problem but you could try
running the PACK command after CLEAR ALL.

HTH,
Ashish.