Matlab crashing when saving a workspace

8 次查看(过去 30 天)
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 个评论
Angshuman Podder
Angshuman Podder 2022-11-25
编辑:Angshuman Podder 2022-11-25
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'.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by