필터 지우기
필터 지우기

Maximum Array size limit

조회 수: 281 (최근 30일)
lucksBi
lucksBi 2017년 3월 16일
답변: Muniba Ashfaq 2020년 9월 11일
hi i am using R2016a and geting this error Requested 95319x84602 (60.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.
I have changed maximum array size in prefrences to 10000 (Maximum allowed size) Any solution for this? Thanks in advance
  댓글 수: 2
KSSV
KSSV 2017년 3월 16일
What is the necessity to load such a huge data at once?
lucksBi
lucksBi 2017년 3월 16일
I am working on dataset of size 841372x3 and need to perform some calculations on it

댓글을 달려면 로그인하십시오.

답변 (4개)

Adam
Adam 2017년 3월 16일
Any solution for what? The fact that you want a 60 GB array in memory? Do you even have 60 GB of RAM? What do you want to do with the array? Even if you could find enough memory for it any calculations done on it would likely require still more memory.
doc matfile
can be used to create arrays too large to fit into memory though if you are sure you really need an array this big.

Jan
Jan 2017년 3월 16일
편집: Jan 2017년 3월 16일
You set the preferences to 10000 what? MB or GB? As far as I remember the size is set to the percentage of available RAM, so I'd expect something like 100%, but not "10'000".
Concerning your comment: 841372x3 means a 20MB array, 95319x84602 is a 64GB array. This is a remarkable difference.
Do you have 64GB of free RAM, or better the double size, which is required when you want to work with such arrays?
Please read the documentation concerning tall arrays.
  댓글 수: 1
Royi Avital
Royi Avital 2017년 3월 30일
Is there a command to set it (Like with groot or something)?

댓글을 달려면 로그인하십시오.


eun joo yoon
eun joo yoon 2020년 2월 6일
I have similar problem.
I want to deal with 500x500m scale global data in Matlab. (80150*34036 array)
I made tif to ascii in Arcmap.
But it is not open because of lack of memory,,
I wonder how other people deal with such global data such as MODIS data.
  댓글 수: 2
Rik
Rik 2020년 2월 6일
Have a read here and here. It will greatly improve your chances of getting an answer.
I'm unsure where to move your comment, so I will give you the opportunity to post it in the appropriate comment section or use it in your separate question. This answer will be deleted later today.
Steven Lord
Steven Lord 2020년 2월 6일
If you want to work with Big Data (data that's larger than you can store in memory) consider using one or more of the tools listed on this documentation page. For ASCII data that large, setting up a datastore for the file or files and using that datastore to create a tall array would probably be my first attempt.
Rik, while this question doesn't seem directly related to the original question it's at least in the same general space. I'm not sure it should be deleted.

댓글을 달려면 로그인하십시오.


Muniba Ashfaq
Muniba Ashfaq 2020년 9월 11일
I was also getting this error. I deleted all unnecessary variables from workspace to free up memory. I just keep those variables that was needed for my MATLAB code execution.
This worked amazingly.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by