Problems with saving large workspace

Sometimes when I have a quite large workspace - e.g. a table with 8.5 million rows and 27 columns, Matlab has problems saving it.
A very small file appears but the program does not succeed in saving the workspace - no warning or anything.
Yesterday I just waited, and hours later I got a strange error message saying the file did not exist.
This is severely annoying, because I have to regenerate data that takes to to generate a lot of times.
I'm running Matlab R2018b, but I think this has been happening for a couple of versions back.
Suggestions?
Edit: So trying again I noticed something really weird happens.
It starts saving, and I can see the size of the file to which I try to save grow... then at some point I hear a chime sound from Windows, and the file size goes back to zero and then starts growing again.
Edit2: When using the save-command I get the following error msg:
"Error using save
Error closing file R:\MATLAB data\Christian\ftard.mat.
The file may be corrupt."

Antworten (2)

Fangjun Jiang
Fangjun Jiang am 4 Mär. 2019

0 Stimmen

You might consider Tall Arrays
web(fullfile(docroot, 'matlab/import_export/tall-arrays.html'))
Walter Roberson
Walter Roberson am 4 Mär. 2019

0 Stimmen

save with the -v7.3 option.

Produkte

Version

R2018b

Gefragt:

am 4 Mär. 2019

Beantwortet:

am 4 Mär. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by