MATLAB crashes when I type "clear all" at the prompt

15 visualizzazioni (ultimi 30 giorni)
Francois
Francois il 29 Ott 2025 alle 1:02
Commentato: Francois il 29 Ott 2025 alle 3:40
If I type
>> clear all
at the prompt nothing bad happens, but after I run my script, typing
>> clear all
crashes matlab.
  4 Commenti
Steven Lord
Steven Lord il 29 Ott 2025 alle 3:04
What's in the struct array? I suspect you have a user-defined object that has a bug in its destructor and/or you created an array stored in the struct using a MEX-file and the MEX-file has a bug.
Francois
Francois il 29 Ott 2025 alle 3:40
Sounds very pausible because I was saving some of the output from Matlab's 'decomposition' in the par struct. I'm unsure what the internal structure of the 'decomposition' type is.
However, after posting this question, I managed to create a small enough reproducible example so that I can post a crash report to Mathworks. Hopefully they can fix the problem in future versions.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Programming Utilities in Help Center e File Exchange

Prodotti


Release

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by