array size limit issues

4 Ansichten (letzte 30 Tage)
Martina Clairand
Martina Clairand am 5 Feb. 2021
Kommentiert: Steven Lord am 5 Feb. 2021
Hello, I'm trying to run a code which basically calculates the radial intensity profile of a disk at every stack and then plots it over time. The videos I analyze however are quite long (200 to 900 stacks--> 1-4Gb) and heavy.
While running the code, in one of the final steps I have the following error:
"Requested 341x3104952 (7.9GB) 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".
Do you know how can I increase the array size limit?
Thank you in advance for your help!

Antworten (1)

Walter Roberson
Walter Roberson am 5 Feb. 2021
https://www.mathworks.com/help/matlab/matlab_env/set-workspace-and-variable-preferences.html
  1 Kommentar
Steven Lord
Steven Lord am 5 Feb. 2021
In addition to the preferences to which Walter directed you, if you're working with big data the tools in MATLAB designed to operate on big data may be of use to you.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by