matrix size and storage capability

2 ビュー (過去 30 日間)
Ano
Ano 2018 年 4 月 12 日
コメント済み: Ano 2018 年 4 月 13 日
Hello, I would like to perform some computations using MATLAB, these computations will consist in saving some large matrices at the end, so I would like to know how can I avoid having out of memory issue by preconditioning the matrices size at the beginning, i.e if a matrix with size let say 8000 x 8000 will generate out of memory, I could decrease the size before starting the calculations , which means I would like to know if there is a way to define a threshold size that doesn't produce a problem and in the meanwhile be large enough for my computations. Thank you!
  2 件のコメント
Adam
Adam 2018 年 4 月 12 日
[~,memInfo] = memory;
memInfo.PhysicalMemory.Available
is what I tend to use. I decide on a percentage of the available space I am willing to use and then, based on the variables I expect to need to create I work out the size my input can be (e.g. if I'm doing some image processing and I know I will create 3 temporary results and 2 output results I use this to determine an estimate of my maximum memory usage, depending if I can delete the temporary results before getting the output results, etc - i.e. an estimate of what my maximum usage will be as a multiple of the input size)
Ano
Ano 2018 年 4 月 13 日
thank you very much for your reply!

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by