Error using save: Error closing file
Mostrar comentarios más antiguos
Hey all,
An instance of a class is filled with a lot of data and than saved to my harddisk.
However, during saving, I get the following error: Error using save: Error closing file dummy.mat
I thought it had to do with a lack of memory, but I've monitored the process during saving and I never run out of RAM, and I know that I have plenty of space left on my harddisk.
Does anyone know what causes this error?
Any suggestions are much appreciated!
1 comentario
Rafael Lopez Campos
el 17 de Dic. de 2020
Hi, I had the same problem. I was working my script in a external device, so I fixed it moving my environment in the same device Matlab is installed.
Respuesta aceptada
Más respuestas (2)
Jonathan Pelham
el 17 de Feb. de 2015
0 votos
I have had a similar error message. This is a very old q&a. Does anyone know if the answer is still valid?
1 comentario
Ingo Schalk-Schupp
el 21 de Jul. de 2015
For me, this also did the trick. I was saving using the -v6 switch, and I got the error reproducibly. After I removed it, the error did not occur any longer.
Zaki Mohzani
el 7 de Sept. de 2016
0 votos
Ran into this error today. That error message should be updated to reflect the new 'v7.3' option.
3 comentarios
Henrique Costa
el 5 de Mayo de 2017
Now it is: save('myFile.mat','-v7.3','-nocompression');
Henrique Costa
el 5 de Mayo de 2017
or, if you want compression : save('myFile.mat','-v7.3');
Adam Bruce
el 18 de Nov. de 2020
Editada: Adam Bruce
el 18 de Nov. de 2020
This still works on 2020a. Thanks!
Categorías
Más información sobre Historical Contests en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!