Borrar filtros
Borrar filtros

How to input a 294192x294192 array?

1 visualización (últimos 30 días)
LIN Hongbin
LIN Hongbin el 13 de Mzo. de 2016
Editada: Adam el 14 de Mzo. de 2016
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 comentario
Walter Roberson
Walter Roberson el 13 de Mzo. de 2016
That array would require over 644 gigabytes of RAM. How much RAM do you have?

Iniciar sesión para comentar.

Respuesta aceptada

Adam
Adam el 13 de Mzo. de 2016
Editada: Adam el 14 de Mzo. de 2016
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 comentario
LIN Hongbin
LIN Hongbin el 14 de Mzo. de 2016
Thank you,I have tried to rebuild my matrix to aviod this problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by