Memory consumption while using autocorr2 package

4 ビュー (過去 30 日間)
Hussein Kokash
Hussein Kokash 2022 年 12 月 6 日
コメント済み: Hussein Kokash 2022 年 12 月 6 日
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 件のコメント
Jan
Jan 2022 年 12 月 6 日
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.
Hussein Kokash
Hussein Kokash 2022 年 12 月 6 日
I see what you mean now.
I will edit it so it allocates less than that.
Thank you so much!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by