MATLAB out of memory on linux despite regular "clear all" -


i batch processing bunch of files (~200) on matlab, in essence

for = 1:n, process(i); end 

where process(i) opens file, reads , writes out output file. (i not posting details process here because hundreds of lines long , readily admit don't understand code, having obtained else).

this runs out of memory after every dozen of files or so. of course, on linux, memory function not available have figure out "by hand". well, thought there memory leak, let's issue clear all after every run, i.e.

for = 1:n, process(i); clear all; end 

no luck, still runs out of memory. @ point happens, who says there's 2 small arrays in memory (<100 elements). note quitting matlab , restarting solves problem, computer has enough memory process single item.

any ideas me detect error comes welcome.

this probable not solution hoping workaround have shell script loops on several calls matlab.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -