Reduce Storage Space of .mat files

116 Ansichten (letzte 30 Tage)
Interestec
Interestec am 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.

Antworten (1)

Sai Bhargav Avula
Sai Bhargav Avula am 21 Okt. 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.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by