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:
Largest

Subject: Largest

From: Mathew Thomas

Date: 4 Dec, 2010 01:17:05

Message: 1 of 5

Hello All,

Does anyone know how to improve the Largest Contiguous Free Memory block ?? I used 'Clear all'. But even after doing this there is hardly a 10MB improvement. I tried reading earlier posts suggesting restarting Matlab may be the only option, just wanted to know if anyone else knows if there is any other efficient way to achieve this. Thanks in advance for any help.

Thank you,

Mathew

Subject: Largest

From: Matt Fig

Date: 4 Dec, 2010 02:06:04

Message: 2 of 5

Have you tried the PACK command?

Subject: Largest

From: Mathew Thomas

Date: 4 Dec, 2010 02:27:06

Message: 3 of 5

"Matt Fig" <spamanon@yahoo.com> wrote in message <idc7mc$8st$1@fred.mathworks.com>...
> Have you tried the PACK command?

Hey Matt,

Yes I did. Didn't help much though. I am using 'global' several times in the program. Will using 'save' take up less space from the virtual memory in the first place ?? But the more important question is if its possible to clear the virtual memory without having to restart Matlab again.

Thanks,

Mathew

Subject: Largest

From: Walter Roberson

Date: 4 Dec, 2010 02:50:41

Message: 4 of 5

On 03/12/10 7:17 PM, Mathew Thomas wrote:

> Does anyone know how to improve the Largest Contiguous Free Memory block
> ?? I used 'Clear all'. But even after doing this there is hardly a 10MB
> improvement. I tried reading earlier posts suggesting restarting Matlab
> may be the only option, just wanted to know if anyone else knows if
> there is any other efficient way to achieve this.

No, if clearing everything and packing doesn't work, then you need to
restart. Or, alternately, switch to 64 bit matlab and enough physical
memory that it doesn't matter anymore.

Subject: Largest

From: Mathew Thomas

Date: 4 Dec, 2010 04:57:04

Message: 5 of 5

Yea , that was what I was afraid of. Thanks Walter.

Walter Roberson <roberson@hushmail.com> wrote in message <50iKo.4780$Nx4.2236@newsfe22.iad>...
> On 03/12/10 7:17 PM, Mathew Thomas wrote:
>
> > Does anyone know how to improve the Largest Contiguous Free Memory block
> > ?? I used 'Clear all'. But even after doing this there is hardly a 10MB
> > improvement. I tried reading earlier posts suggesting restarting Matlab
> > may be the only option, just wanted to know if anyone else knows if
> > there is any other efficient way to achieve this.
>
> No, if clearing everything and packing doesn't work, then you need to
> restart. Or, alternately, switch to 64 bit matlab and enough physical
> memory that it doesn't matter anymore.

Tags for 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