필터 지우기
필터 지우기

Matlab crashing when saving a workspace

조회 수: 3 (최근 30일)
kk
kk 2020년 6월 10일
편집: Angshuman Podder 2022년 11월 25일
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