Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: why does Matlab fail to release memory even if I clear all the variables?
Date: Mon, 1 Mar 2010 14:01:05 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 17
Message-ID: <hmghb1$i6c$1@fred.mathworks.com>
References: <hmgggp$r5e$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1267452065 18636 172.30.248.37 (1 Mar 2010 14:01:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Mar 2010 14:01:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:612694

"Ha "
> Another problem I'm confusing is that even after I clear all the variables by executing "clear", the memory are not released.

it is...
- download this great utility (in case you run a wintel sys)...

http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

% start ML, then
% open PROCESS EXPLORER, select ML, select the -performance graph- tab
% then
     m=rand(10000);
% watch -private bytes- in the graph...
     clear m;
% watch, again...

us