cell part not saved using '-struct' option
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 21 Mai 2019
In my quick test in R2019a, all three fields show up for me.
Yu Li
le 21 Mai 2019
Steven Lord
le 21 Mai 2019
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
le 21 Mai 2019
Is it possible that the data field contained over 1 gigabyte ?
Walter Roberson
le 22 Mai 2019
The cell array contains more than 4 gigabytes and so needs the -v7.3 flag to save
Yu Li
le 22 Mai 2019
Walter Roberson
le 22 Mai 2019
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
le 22 Mai 2019
Walter Roberson
le 22 Mai 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.
Réponses (0)
Catégories
En savoir plus sur Structures dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
