Reduce Storage Space of .mat files

117 vues (au cours des 30 derniers jours)
Interestec
Interestec le 4 Sep 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.

Réponses (1)

Sai Bhargav Avula
Sai Bhargav Avula le 21 Oct 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.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by