Memory consumption while using autocorr2 package

Hello all,
I am trying to use the following package:
However, whenever I try to run it, the memory consumption gradual increases until the device freezes, I tried alternating the parameters, same results.
Any idea what is causing this huge memory consumption?, knowing that I run heavier packages with no issues.
Thank you and stay well.

4 个评论

What do you use as input? How do you define, how "heavy" a package is? sin(1:1e12) is not heavy, but will exhaust the memory also.
I have alternated the input range, I meant by heavy is I run packages with GUI's that analyze images and has much more size than this one, they work, with this package though, no matter what parameter I use, it still causes memory crash.
I am trying to see which part is causing this by running sections, still no luck.
I just wanted to know which part of the cause could cause this so that I can alter it.
Thanks Jan
I have no problem with running the function to get an auto-correlation for images with 1000x1000 pixels.
Again: What do you use as inputs?
This code does not look "heavy":
x = [];
for k = 1:1e6
x(k) = k;
end
Due to the missing pre-allocation Matlab has to allocate more than 4 TB of RAM to run this code.
I see what you mean now.
I will edit it so it allocates less than that.
Thank you so much!

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Matrix Indexing 的更多信息

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by