Reduce Storage Space of .mat files
138 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Sai Bhargav Avula
on 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.
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!