Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: what command/fcn to close a file in M-editor?
Date: Tue, 7 Aug 2007 09:50:21 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 19
Message-ID: <f99f8t$jnq$1@fred.mathworks.com>
References: <f992g0$jg8$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186480221 20218 172.30.248.35 (7 Aug 2007 09:50:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 7 Aug 2007 09:50:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422710


S.David S:
<SNIP needs command line control of his/her editor...

one of the solutions

% ML's editor engine
     e=com.mathworks.mlservices.MLEditorServices;
% open a doc
% ...note: needs a full path!
     e.openDocument(which('unique'));
% ...activate the command window!
     pause;
% close a doc
     e.closeDocument(which('unique'));
     pause;
% close the editor
     e.closeAll;

us