MATLAB Answers


How to close editor from the command line?

Asked by K E
on 3 Jun 2016
Latest activity Commented on by Walter Roberson
on 1 Apr 2019
I accidentally opened a huge file in the editor and it won't close, and when I restart Matlab the editor reopens the huge file. Is there a way to close the editor from the Matlab prompt? If it matters, I have several mfiles open in different tabs of the editor, but fine to close them all.


Sign in to comment.


2 Answers

Answer by Joseph Cheng
on 3 Jun 2016
Edited by Joseph Cheng
on 3 Jun 2016
 Accepted Answer

you can call com.mathworks.mlservices.MLEditorServices.closeAll
you can read up all about this on the page
incase the editor ties you up so you still cannot access the command window then try creating a start up file or move the large file from where it is so matlab "errors" when trying to load the file

  1 Comment

Great, thanks.

Sign in to comment.