Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Question for Steven Lord re anonymous workspace capture

Subject: Question for Steven Lord re anonymous workspace capture

From: Eric Sampson

Date: 10 Feb, 2014 19:52:08

Message: 1 of 3

Hi Steven, would you perhaps be able to answer the following questions that Matt posted about anonymous workspace capture? :)
http://www.mathworks.com/matlabcentral/answers/115569-what-extra-data-is-stored-by-an-anonymous-function
http://www.mathworks.com/matlabcentral/answers/115254-parfor-behavior-sensitive-to-comments#comment_195534

Subject: Question for Steven Lord re anonymous workspace capture

From: Steven Lord

Date: 11 Feb, 2014 15:02:49

Message: 2 of 3


"Eric Sampson" <ericDOTsampson@gmail.com> wrote in message
news:ldbal8$mh5$1@newscl01ah.mathworks.com...
> Hi Steven, would you perhaps be able to answer the following questions
> that Matt posted about anonymous workspace capture? :)
> http://www.mathworks.com/matlabcentral/answers/115569-what-extra-data-is-stored-by-an-anonymous-function

Philip Borghesani already responded to this one. I don't have anything to
add beyond what he wrote.

> http://www.mathworks.com/matlabcentral/answers/115254-parfor-behavior-sensitive-to-comments#comment_195534

Edric Ellis took care of this one.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Question for Steven Lord re anonymous workspace capture

From: Eric Sampson

Date: 11 Feb, 2014 15:24:11

Message: 3 of 3

"Steven Lord" <Steven_Lord@mathworks.com> wrote in message <ldde2q$9r5$1@newscl01ah.mathworks.com>...
>
> "Eric Sampson" <ericDOTsampson@gmail.com> wrote in message
> news:ldbal8$mh5$1@newscl01ah.mathworks.com...
> > Hi Steven, would you perhaps be able to answer the following questions
> > that Matt posted about anonymous workspace capture? :)
> > http://www.mathworks.com/matlabcentral/answers/115569-what-extra-data-is-stored-by-an-anonymous-function
>
> Philip Borghesani already responded to this one. I don't have anything to
> add beyond what he wrote.
>
> > http://www.mathworks.com/matlabcentral/answers/115254-parfor-behavior-sensitive-to-comments#comment_195534
>
> Edric Ellis took care of this one.

Thanks Steve! With regards to that second question that Edric answered, what I was hoping you might be able to answer was the comment that he posted at the end with this question: " I can see why the anonymous function handle might need to snapshot all variables created before the anonymous function is defined, but the links don't explain why changes to those variables made after the anonymous function is created are also stored. Nobody expects to be able to reference later versions of the variables through their anonymous functions". I've always been curious about this too.

Best regards,
Eric

>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us