Effacer les filtres
Effacer les filtres

Matlab crashing when saving a workspace

8 vues (au cours des 30 derniers jours)
kk
kk le 10 Juin 2020
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 commentaire
Angshuman Podder
Angshuman Podder le 25 Nov 2022
Modifié(e) : Angshuman Podder le 25 Nov 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'.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by