Borrar filtros
Borrar filtros

Matlab crashing when saving a workspace

8 visualizaciones (últimos 30 días)
kk
kk el 10 de Jun. de 2020
Editada: Angshuman Podder el 25 de Nov. de 2022
Hello,
I'm having an annoying problem. Matlab sometimes crashes when I'm saving the current workspace. This problem seems to happen when I have a cell array either of cfits, or of a structure containing cfits in my workspace. Sometimes the save is successful, and sometimes when the crash happens when Matlab is overwriting the cell array, the current workspace is partly rewritten with empty variables and the data are completely lost unless I've made a backup earlier. When the workspace saves successfully, it can be a bit larger, but I would not think that a 30MB file should cause problems. Can I be doing something wrong or is there any workaround except for not using the cell arrays? (I'm using Matlab 2015b, but I had the same problem also in an earlier version, I think 2014.)
Any advice is highly appreciated.
  1 comentario
Angshuman Podder
Angshuman Podder el 25 de Nov. de 2022
Editada: Angshuman Podder el 25 de Nov. de 2022
Hi, I had the same problem. Try this: Please check if you have any variable name same as any inherent MATLAB function name which could cause a conflict. For example, you cannot have any variable name as 'save' or 'error'.

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by