Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Getting the names of files open in the editor?

Subject: Getting the names of files open in the editor?

From: Bill Whiten

Date: 13 May, 2010 10:09:03

Message: 1 of 4

I would like to find a method of reading the names of the files open in the editor.

I work on several different projects, which use different sets of files.
I would like to save the names of the files open in the editor for each project when I close Matlab, so that I can open them all again via a program that reopens the files, when I come back to that project.

Thanks

Subject: Getting the names of files open in the editor?

From: us

Date: 13 May, 2010 10:17:12

Message: 2 of 4

On May 13, 12:09 pm, "Bill Whiten" <notthis.W.Whi...@uq.edu.au> wrote:
> I would like to find a method of reading the names of the files open in the editor.
>
> I work on several different projects, which use different sets of files.
> I would like to save the names of the files open in the editor for each project when I close Matlab, so that I can open them all again via a program that reopens the files, when I come back to that project.
>
> Thanks

one of the solutions

     es=com.mathworks.mlservices.MLEditorServices;
     dn=char(es.builtinGetOpenDocumentNames)

us

Subject: Getting the names of files open in the editor?

From: Bill Whiten

Date: 13 May, 2010 10:45:05

Message: 3 of 4

us <us@neurol.unizh.ch> wrote in message <e2148320-4b18-46b3-88f9-dd2de61d1225@37g2000yqm.googlegroups.com>...
> On May 13, 12:09 pm, "Bill Whiten" <notthis.W.Whi...@uq.edu.au> wrote:
> > I would like to find a method of reading the names of the files open in the editor.
> >
> > I work on several different projects, which use different sets of files.
> > I would like to save the names of the files open in the editor for each project when I close Matlab, so that I can open them all again via a program that reopens the files, when I come back to that project.
> >
> > Thanks
>
> one of the solutions
>
> es=com.mathworks.mlservices.MLEditorServices;
> dn=char(es.builtinGetOpenDocumentNames)
>
> us

Thanks, works, and a reply within 10 minutes.

Subject: Getting the names of files open in the editor?

From: Bill Whiten

Date: 18 Jun, 2010 10:18:05

Message: 4 of 4

"Bill Whiten" <notthis.W.Whiten@uq.edu.au> wrote in message <hsgj3v$a8v$1@fred.mathworks.com>...
> I would like to find a method of reading the names of the files open in the editor.
>
> I work on several different projects, which use different sets of files.
> I would like to save the names of the files open in the editor for each project when I close Matlab, so that I can open them all again via a program that reopens the files, when I come back to that project.
>
> Thanks

In 2010a +:
Documented method (doc editorservices):

allDocs = editorservices.getAll;
savededit={allDocs.Filename};

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us