cell part not saved using '-struct' option
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 21 Mai 2019
In my quick test in R2019a, all three fields show up for me.
Yu Li
am 21 Mai 2019
Steven Lord
am 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
am 21 Mai 2019
Is it possible that the data field contained over 1 gigabyte ?
Walter Roberson
am 22 Mai 2019
The cell array contains more than 4 gigabytes and so needs the -v7.3 flag to save
Yu Li
am 22 Mai 2019
Walter Roberson
am 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
am 22 Mai 2019
Walter Roberson
am 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.
Antworten (0)
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
