It seems like it should be simple, like
close -mfile all
but I can't find anything.
Thanks!
I agree that such functionality might be useful.
This is not a function you would want to use in an
M file, though, only as part of the GUI. I think it
would be better to include it as an option in the
EDIT menu or the pop-up menu in the editor.
Rune
There are several ways to close multiple files at once or to close the
Editor. I don't believe there is a documented function that allows you to
do so, but you can use one of these methods:
1) Use the Close button in the title bar of the Editor, as described in this
section of the documentation. This will close the Editor and all documents
it contains.
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/brqxeeu-11.html#brqxeeu-22
2) Also as documented in the section I linked above, use the Window menu
items "Close Editor Documents" or "Close All Documents".
3) With the Editor active, use one of the three Close menu items in the File
menu -- "Close Editor", "Close <name of currently active file in the
Editor>" and "Close ..." which allows you to select any or all of the files
open in the editor and close the selected files.
I will enter a request for a function to close selected documents in the
Editor into our enhancement database.
--
Steve Lord
sl...@mathworks.com
There is an undocumented method, which might be changed with the Matlab version:
Editor = com.mathworks.mlservices.MLEditorServices;
Editor.closeAll;
For more tasks see: methods(Editor, '-full');
I do not think, it is worth to include a menu for this, because the close box of the editor window performs the tasl already.
Kind regards, Jan
Steve
Did anything ever come of this?
Also, see my post http://tinyurl.com/3syfe9h
I am looking for a command to close all open array editor windows.
Bob
"Bob" <ralv...@spambob.net> wrote in message
news:77955.724.1318264604585.JavaMail.geo-discussion-forums@prib32...
>>> I was curious if there was a command that can close all M-files, or
>>> close
>>> the entire Editor.
> ...
> I will enter a request for a function to close selected documents in the
> Editor into our enhancement database.
> ---------------
>
>
> Steve
>
> Did anything ever come of this?
http://blogs.mathworks.com/desktop/2011/05/09/r2011a-matlab-editor-api/
Use a combination of the functions findOpenDocument and/or getAll with the
close and/or closeNoPrompt methods.
> Also, see my post http://tinyurl.com/3syfe9h
> I am looking for a command to close all open array editor windows.
I'm fairly certain there isn't a documented way to do that. I recommend you
contact Technical Support and request this as an enhancement.
--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com