cell part not saved using '-struct' option
显示 更早的评论
Hi:
I have a structure variable 'ImaInfo' like below:

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:

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 个评论
Walter Roberson
2019-5-21
In my quick test in R2019a, all three fields show up for me.
Yu Li
2019-5-21
Steven Lord
2019-5-21
Did you receive any warning message when you tried saving the struct array? If so what is the full text of that warning (all the text displayed in orange?)
Are you certain you're using the built-in save function? What does this return?
which -all save
What type of data is stored inside the cell array named data?
Walter Roberson
2019-5-21
Is it possible that the data field contained over 1 gigabyte ?
Walter Roberson
2019-5-22
The cell array contains more than 4 gigabytes and so needs the -v7.3 flag to save
Yu Li
2019-5-22
Walter Roberson
2019-5-22
The limitation is not on the compressed size of the data: it is on the raw size of the data including the uncompressed headers.
Yu Li
2019-5-22
Walter Roberson
2019-5-22
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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
