cell part not saved using '-struct' option

2 views (last 30 days)
Yu Li
Yu Li on 21 May 2019
Commented: Walter Roberson on 22 May 2019
Hi:
I have a structure variable 'ImaInfo' like below:
Capture.JPG
then I saved it into disk using '-struct' option, using command:
save('test.mat','-struct','ImaInfo')
but the variable data in the struction ('ImaInfo.data') is not saved in the 'test.mat' file, as shown below:
Capture.JPG
just want know if there is any mistake with my operation? or 'cell' type is not allow to save in '-struct' option?
Thanks!
Yu
  10 Comments
Yu Li
Yu Li on 22 May 2019
I tried the '-v7.3' option, yes, the parameter is successfully saved. but I have one more question:
the size of original file is: 778436Kb
the size of compressed file is: 778431Kb
the usage of '-v7.3' only reduced 5Kb of the disk size, do you think this weird?
Thansk!
Yu
Walter Roberson
Walter Roberson on 22 May 2019
V7.3 is not a compression specification. V7.3 uses a completely different internal format for data that is able to hold large variables where the old format included size counters that were limited to 1 gigabytes.

Sign in to comment.

Answers (0)

Categories

Find more on Structures 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!