Need help on Matlab memory error

7 ビュー (過去 30 日間)
Leon
Leon 2018 年 9 月 2 日
コメント済み: Walter Roberson 2018 年 9 月 6 日
Below is the error I got while using divagrid on Matlab. Anyone has a solution? How do I expand the available space? My computer has 16 GB of memory and it seems to be only using 1/3 of them at most.
Many thanks!
Total number of data constraint: ndata = 13743153
** ERROR - ALLODY - STORAGE OF kelos
REQUIRED SPACE27544606
AVAILABLE SPACE : 20000000
Index in position 2 exceeds array bounds.
  3 件のコメント
Rik
Rik 2018 年 9 月 2 日
Matlab needs contiguous blocks of free memory to store variables, so if your free memory is very fragmented you won't be able to make large variables. If you search for them on this forum, you should be able to find tips on how to maximize your array sizes.
Leon
Leon 2018 年 9 月 3 日
Thank you for the info! Any specifics on the solution? I'm unable to find any tips on how to solve this on this forum.

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 9 月 3 日
You need to adjust a parameter and recompile. See page 181 of the user guide.
  6 件のコメント
Leon
Leon 2018 年 9 月 6 日
Unfortunately, I do not know how to use gcc/gfortran and MinGW to edit exe files, but thank you very much anyway!
Walter Roberson
Walter Roberson 2018 年 9 月 6 日
You would edit the .h file they indicate to change those two parameters; that would require a plain text editor.
More of a nuisance is that you would need to edit the Makefile (using a text editor) to reconfigure the locations of the include files and libraries and possibly to change the names of the compilers. It is not a big deal for someone who is accustomed to using those compilation tools, but it could certainly be somewhat baffling to someone who has not used those tools before.

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

その他の回答 (0 件)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by