Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

? Error: Out of memory

1 Ansicht (letzte 30 Tage)
Joshua Keane
Joshua Keane am 25 Nov. 2015
Geschlossen: MATLAB Answer Bot am 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 Kommentare
Kirby Fears
Kirby Fears am 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 am 25 Nov. 2015
Which MATLAB release is being used? Historically there were a couple of releases where save() had a memory leak.

Antworten (0)

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by