Requested array exceeds maximum array size preference

I get the following error while trying to call odenumjac.
Requested 35036x35036 (9.1GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become
unresponsive. See array size limit or preference panel for more information.
Error in odenumjac (line 126)
ydel = y(:,ones(1,ny)) + diag(del);
Error in simulation (line 31)
J = odenumjac(@fun,{0 X0}, f0, joptions);
I changed the `Maximum array size` to 10000 in Preference > workspace.
I still face the same error. The size of my physical memory is 8 GB and I can see that the requested array size is ~9 GB.
I would like to know how this problem can be solved.

5 件のコメント

Walter Roberson
Walter Roberson 2021 年 2 月 23 日
Turn off the limit, and let your system use swap space, which may be very very slow.
Deepa Maheshvare
Deepa Maheshvare 2021 年 2 月 23 日
編集済み: Deepa Maheshvare 2021 年 2 月 23 日
Thank you, I unchecked Limit the maximum array size to a percentage if RAM .
Out of memory. Type "help memory" for your options.
Error in odenumjac (line 126)
ydel = y(:,ones(1,ny)) + diag(del);
Error in simulation (line 31)
J = odenumjac(@fun,{0 X0}, f0, joptions);
:'-(
Walter Roberson
Walter Roberson 2021 年 2 月 23 日
https://www.x-plane.com/kb/increasing-virtual-memory-on-windows/
Deepa Maheshvare
Deepa Maheshvare 2021 年 2 月 23 日
編集済み: Deepa Maheshvare 2021 年 2 月 23 日
Thanks so much for the link. It is mentioned "This procedure does not apply to 64-bit Windows (which always provides X-Plane with the 4 GB of address space)" , I am using 64-bit Windows. I also checked the Total Vitrual Memory (25.9 GB) and Avaibale Virtual Memory (13.4 GB).

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R2019b

質問済み:

2021 年 2 月 23 日

コメント済み:

2021 年 2 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by