Desktop Tools and Development Environment Previous page   Next Page

Opening Existing Files in the Editor/Debugger

To open an existing file in the Editor/Debugger, click the Open file button on the desktop or Editor/Debugger toolbar, or select File -> Open.

The Open dialog box appears, listing all M-files. You can see different files by changing the selection for Files of type in the dialog box. Type or select a filename, and click Open. If you access the Open dialog box from the desktop, the current directory files are shown, but if you access it from the Editor/Debugger, the files in the directory for the current file are shown.

The Editor/Debugger opens, if it is not already open, with the file displayed. You can have multiple Editor/Debugger files open at once, and the location of the files and the Editor/Debugger are determined by document positioning guidelines. You can rearrange the documents to suit your needs. For details, see Opening and Arranging Documents.

To make a document in the Editor/Debugger become the current document, click it, or select it from the Window menu or document bar.

Other Methods for Opening Files in the Editor/Debugger

These are other ways to open files in the Editor/Debugger:

Function Alternative for Opening an M-File.   Use the edit or open function to open an existing file in the Editor/Debugger. For example, type

edit collatz.m

to open the file collatz.m in the Editor/Debugger, where collatz.m is on the search path or in the current directory. Use the relative or absolute pathname for the file you want to open if it is not on the search path or in the current directory.


Previous page  Creating a New File in the Editor/Debugger Opening the Editor Without Starting MATLAB Next page

© 1994-2005 The MathWorks, Inc.