|
Hey, Thanks for your reply.
For a simple case like that, the memory will be reclaimed by the OS.
But whenever I load large excel files, and do a 'clear all' after that, the memory doesn't go down. In general, after a complex script is executed, the memory just isn't reclaimed.
Any ideas?
Are there any hidden 'vars' to clear as well?
Lucas
"Nasser M. Abbasi" <nma@12000.org> wrote in message <jt57mn$6lr$1@speranza.aioe.org>...
> On 7/5/2012 6:16 PM, Nasser M. Abbasi wrote:
> > On 7/5/2012 4:37 PM, Lucas wrote:
> >> Hi all,
> >>
> >> I notice that even after a 'clear all' command, Matlab still appears to hold
> >> on to hundreds of MBs of memory as shown in the Windows task manager. How
> >> do I force Matlab to free up those memory?
> >
> > I did this on windows:
> >
> > 1) started Matlab. Memory was 170 MB according to task manager
> > 2) A=size(2000); Memory now jumped to 201 MB
> > 3) clear all; Memory went to 179 MB again
>
> opps, typo: 179 above is meant to be 170. i.e. went back to
> original size.
>
> > Repeated steps 2-3, same results.
>
> --Nasser
|