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

14 views (last 30 days)
Francois
Francois on 29 Oct 2025 at 1:02
Commented: Francois on 29 Oct 2025 at 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 Comments
Steven Lord
Steven Lord 17 minutes ago
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 8 minutes ago
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.

Sign in to comment.

Answers (0)

Categories

Find more on Programming Utilities in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!