Save Structure files in les space consuming format.
Show older comments
I have many structure files (.mat) as output, whose size is around 1.9 GB each. Is there any way , by which i can save this structure file in low size or space format.
Or is there any way by which I can reduce the size of this structure file, so that it takes less space on my pc.
4 Comments
Walter Roberson
on 12 Jun 2013
Maybe, but we would need more information about the structure contents to know. One thing we would need to know is whether for different indices, the arrays stored in a given field is always the same size:
size(S(K).Fieldname) == size(S(J).Fieldname) for all indices K, J ?
What are the characters of the arrays for any one field? Is the data very fast changing, or are there similarities, M(K) is "close to" M(K+1) ?
Priya
on 12 Jun 2013
Walter Roberson
on 13 Jun 2013
A first-pass estimate of the storage requirements would be:
800 fields times 400 times 15 cells per field times Q doubles per cell times 8 bytes per double
which is (Q * 38.4) megabytes where Q is the average number of doubles per cell (you did not give us an estimate of that value)
You ask about fitting that into "kilobytes". For the purpose of discussion, I will take that as meaning you would like to have at most 500 kilobytes of storage, as after that one would round up to speak in terms of megabytes instead of kilobytes.
>> syms Q; double(solve(1000*(500*1000) = 38400000*Q))
13.02
so if there is an average of less than 13 doubles per cell, the storage requirements could potentially be "kilobytes".
If your cells average more than 13 doubles per cell, it would be necessary to use compression techniques.
There would be overhead in marking the boundaries of which part of memory goes with which cell, so you would not be able to achieve as small as Q*38.4 megabytes with varying length arrays; the amount of overhead would depend upon the maximum length of each array.
Priya
on 13 Jun 2013
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Report Generator 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!