MATLAB: Memory and mxFree, mxDestroyArray

mex-functionout of memory

Hi, my question is concerning some trouble with memory of an application
fuction:
for(l=0; l<10001, l++){
... allocate Memory ...
... create mxArray ...
for(k=0; k<10001, k++){
//calculate some values out of l and k;
... write into "mxCalloc"- memory ...
}
... put values in a mxArray ...
... save mxArray to matFile ...
... destroy mxArray ...
... Free "mxCalloc"-memory ...
}
end function
That is my loop, but it does produce an out of memory-error … Some idea why ??
Greetings,
uli

Best Answer

.....done... Just comment on this, if you like to know more about the issue and have a nice day.