MATLAB: How to close all open scripts in the Editor window closeeditorMATLABscripts How do I close all open scripts in the Editor window? Best Answer There are 2 ways to close all open scripts in the Editor window:1. Close all scripts in the Editor window programmatically:If this is the case, you can use the following command to get the handle of all open scripts in Editor and then close them:>> closeNoPrompt(matlab.desktop.editor.getAll);The command is using the MATLAB Editor API. You can learn more about the API by typing the following into your command window:>> doc matlab.desktop.editor2. Close all scripts open in the Editor window via mouse:This can be done by clicking the cross button on the top right of the Editor window.Here is a screenshot indicating the location of this button: Related SolutionsMATLAB: Can I save / preserve list of scripts open in the editor What is your MATLAB version? New versions might help you.help matlab.desktop.editorhttp://blogs.mathworks.com/desktop/2011/05/16/matlab-editor-api-examples/ MATLAB: How to snap back editor window into development environment in R2016a In the title bar of the editor, you'll see a little curved downward pointing arrow. Click on that to dock the window. Related QuestionVariables open in a new windowClose (all) Variable Editor windowsR2014A, opens new script editor for every fileAm I receiving a “could not find external editor” error when using the “edit” command to open a MATLAB script
Best Answer