Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Cell Array of Function Handles Leaks Memory
Date: Sun, 1 Jun 2008 07:51:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 19
Message-ID: <g1tkd6$qi9$1@fred.mathworks.com>
References: <g1t973$aeg$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
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 1212306662 27209 172.30.248.35 (1 Jun 2008 07:51:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Jun 2008 07:51:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:471608



"NIcholas " <remove.this_nmg33@cornell.edu> wrote in message
<g1t973$aeg$1@fred.mathworks.com>...

> A = cellArrayFunHandleLeaks; clear A;
> 

Can you use "clear all"? I'm not sure what Matlab doing for
keeping last current commant prompt, debugging information,
"precompiled" code, path, etc ... Beware about interpreting
"MATLAB memory".

> 
> Has anybody else had this problem or know of a solution or
> of a better way to store a set of function handles?
> 

Alternatively, you can put it in a structure array.

Bruno