Out of memory error - How to solve?

1 view (last 30 days)
Ranjani
Ranjani on 27 Mar 2013
I have win7 64 4GB RAM 500GB hardisk laptop. When I try running a normalized periodogram (lomb.m from file exchange), I get this error.
Can someone tell me how to go about this?
Thank you
Ranjani
  1 Comment
Matt Kindig
Matt Kindig on 27 Mar 2013
Exactly as the error indicates: you are simply out of memory. You can try by clear()-ing all unnecessary variables prior to the lomb.m call to see if that helps.

Sign in to comment.

Answers (1)

Jan
Jan on 28 Mar 2013
Did you search for "out of memory" in this forum already? You would find these solutions:
  1. Install more memory
  2. Reduce the size of the problem
  3. Use classes with smaller memory needs, e.g. SINGLE instead of DOUBLE, or even better UINT8 if possible
  4. Install more memory
  5. Close other applications
  6. Increase the virtual memory
  7. Install more memory
  8. Reformulate the algorithm to use inplace operations. This is not trivial in Matlab, but possible, see e.g. Lorens Blog: in-place operations

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!