Thread Subject: Out of Memory problem

Subject: Out of Memory problem

From: Subrat Swain

Date: 7 Dec, 2008 21:49:02

Message: 1 of 3

Hi all,
I am running a program in MATLAB which needs to find out the past iterations for a 1510*1510 matrix. I ran the program but after getting executed for some hours it is
displaying an error saying
 '??? Out of memory. Type HELP MEMORY for your options'.
Actually I do have lot of space in my parent drive of my system but still I am facing the
above error. When I ran the program for 5 iterations it got executed properly.
Can anyone please help me out by suggesting some ways to prevent the above error.
Appreciate for the help.

Thanks and Regards,
Subrat Kumar Swain.

Subject: Out of Memory problem

From: Pete

Date: 7 Dec, 2008 22:56:03

Message: 2 of 3

Use the 'clear' command to clear any unnecessary intermediate variables wherever possible. You can also use 'pack' to consolidate workspace memory. Pre-allocating your storage is also a good idea. Hope this helps. If not, we would need more details on what exactly you are doing.
 

Subject: Out of Memory problem

From: Pete

Date: 7 Dec, 2008 23:03:01

Message: 3 of 3

Perhaps you could also save each iteration of the matrix, then clear it?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com