Problem while running a code

Hii Everyone.
While running a code ,I am getting a specific error.Could anyone help me to find the find the answer?
"Requested 42303x42303 (13.3GB) 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."

3 Comments

If this error is occurring simply because your array is large, you can work around this problem by allowing MATLAB to increase maximum array size limit. You can do this by going into Environment -> Preferences -> Workspace -> MATLAB array size limit, then unchecking the box. I believe you can find additional information here.
It would be helpful if you posted the code that is causing the error. If you don't intend to be creating an array that large, then your problem is in the code. If you do intend to create such a large array and don't have the memory to spare, consider seeing if your problem can either be solved in chunks or using a narrower numeric class.
REEMA MOHANTY
REEMA MOHANTY on 19 Apr 2021
Edited: REEMA MOHANTY on 19 Apr 2021
Thanks Sung Jung Cho and DGM .I have looked into it. I will solve it in chunks.

Sign in to comment.

Answers (0)

Asked:

on 14 Apr 2021

Edited:

on 19 Apr 2021

Community Treasure Hunt

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

Start Hunting!