MATLAB Answers

How to close editor from the command line?

52 ビュー (過去 30 日間)
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.

  0 件のコメント



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 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 件のコメント

K E 2016 年 6 月 4 日
Great, thanks.


その他の回答 (1 件)

Steven Lord
Steven Lord 2016 年 6 月 4 日
Use the MATLAB Editor API introduced in release R2011a.


Community Treasure Hunt

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

Start Hunting!

Translated by