Reducing memory of variables

1 visualización (últimos 30 días)
Joel Schelander
Joel Schelander el 19 de Abr. de 2021
Respondida: the cyclist el 19 de Abr. de 2021
I have a 108x108 cell, each cell contains a double of 525600x1, which represents a value for every minute of the year (the value can be two values 0 or 11)
I will generate 36 of these cells, my memory is limited to 64 GB. Can I somehow reduce the memory of the doubles?

Respuesta aceptada

the cyclist
the cyclist el 19 de Abr. de 2021
Yes, there are many numeric types that use less memory than a double.
Looks like you could use an 8-bit unsigned integer.

Más respuestas (0)

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by