MATLAB Answers

How to close editor from the command line?

조회 수: 32(최근 30일)
K E
K E 2016년 6월 3일
댓글: Walter Roberson 2019년 4월 1일
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.

채택된 답변

Joseph Cheng
Joseph Cheng 2016년 6월 3일
편집: Joseph Cheng 2016년 6월 3일
you can call com.mathworks.mlservices.MLEditorServices.closeAll
you can read up all about this on the http://undocumentedmatlab.com/blog/accessing-the-matlab-editor page
incase the editor ties you up so you still cannot access the command window then try creating a start up file http://www.mathworks.com/help/matlab/ref/startup.html or move the large file from where it is so matlab "errors" when trying to load the file
  댓글 수: 1
K E
K E 2016년 6월 4일
Great, thanks.

댓글을 달려면 로그인하십시오.

추가 답변(1개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by