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!
