Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Cell Array of Function Handles Leaks Memory
Date: Sun, 1 Jun 2008 16:14:02 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 22
Message-ID: <g1uhsa$pi4$1@fred.mathworks.com>
References: <g1t973$aeg$1@fred.mathworks.com> <g1tkd6$qi9$1@fred.mathworks.com> <g1udna$sgp$1@fred.mathworks.com> <g1ueot$67i$1@fred.mathworks.com> <g1ugqh$ip1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1212336842 26180 172.30.248.35 (1 Jun 2008 16:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Jun 2008 16:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:471645



"NIcholas ":
<SNIP gets different results...

> >      r.f=@(x) x=1;
> I assumed this should be x+1, since x=1 gives illegal
> assignment error...

CORRECT! sorry for the typo...

> I get the same result for whos f, but I get different
> results for ff
> ff
> function: '@(x) x+1'
>          type: 'anonymous'
>          file: 'C:\MATLAB7\work\foo.m'
>          workspace: [1x1 struct]
> 

what ML version do you have?
we run 2007b...

us