MATLAB crashes when I type "clear all" at the prompt
    15 views (last 30 days)
  
       Show older comments
    
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
    
      
 on 29 Oct 2025 at 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.
Answers (0)
See Also
Categories
				Find more on Programming Utilities in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
