Reduce Storage Space of .mat files
117 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sai Bhargav Avula
2019-10-21
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!