Reduce Storage Space of .mat files

111 visualizaciones (últimos 30 días)
Interestec
Interestec el 4 de Sept. de 2019
Respondida: Sai Bhargav Avula el 21 de Oct. de 2019
I have an input file which takes up 2036KB in storage. When I remove one structure which is composed of 7 single arrays of size 201x361 each the storage space shrinks to 170KB. Why are those singles taking up so much space and is there anyway to reduce? I have saved the input file under different versions, that doesn't help. I cannot change the arrays to anything less than singles or tables due to needing significant figures.

Respuestas (1)

Sai Bhargav Avula
Sai Bhargav Avula el 21 de Oct. de 2019
Hi,
MATLAB by default stores the mat file with -v7.3 version compression. In your case, you are saving a structure which adds on additional overhead when default version is used, which is directly related to the size of the variables . To work around this issue, please save the MAT file using ‘-v7’ version compression.
The following link would guide you through the steps to change the MAT file version
Hope this helps.

Categorías

Más información sobre Migrate GUIDE Apps 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