Info

This question is closed. Reopen it to edit or answer.

? Error: Out of memory

1 view (last 30 days)
Joshua Keane
Joshua Keane on 25 Nov 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
I have a generic function that takes all .m files (these .m files only contain data arrays) and converts them to .mat files in a loop. However, I get this Out of Memory error after ~100 of these files are converted (there are ~1000 of them). The workspace is mostly cleared in between each one and the .m file is even deleted between each file. What could be causing this issue and How can I fix it?
  2 Comments
Kirby Fears
Kirby Fears on 25 Nov 2015
Set a break point inside of your loop. Using F5, you can step through each iteration of the loop to see which variables are building up in your workspace.
Walter Roberson
Walter Roberson on 25 Nov 2015
Which MATLAB release is being used? Historically there were a couple of releases where save() had a memory leak.

Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!