필터 지우기
필터 지우기

How to input a 294192x294192 array?

조회 수: 1 (최근 30일)
LIN Hongbin
LIN Hongbin 2016년 3월 13일
편집: Adam 2016년 3월 14일
I want to get a 294192x294192 zero array:M=zeros(294192,294192) However I got error as follows: Requested 294192x294192 (644.8GB) 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. How to deal with it?Any good way to get this array?Thank you.
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 3월 13일
That array would require over 644 gigabytes of RAM. How much RAM do you have?

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

채택된 답변

Adam
Adam 2016년 3월 13일
편집: Adam 2016년 3월 14일
Why do you want an array that big? Clearly its size is way bigger than is sensible so even if you could create it what would you do with it?
You probably need to rethink your problem if that is what you need.
If you want most of the array to remain zeros you can use
doc sparse
though if that works for what you want.
  댓글 수: 1
LIN Hongbin
LIN Hongbin 2016년 3월 14일
Thank you,I have tried to rebuild my matrix to aviod this problem.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by