Installation guide
Starting, Customizing, and C losing the Editor/Debugger
Function Alternative
Type edit in the Command Window to create a new file in the
Editor/Debugger.
Type
edit filename.ext to create the file filename.ext.Iffilename.ext
already exists in the current directory or on the MATLAB search path, this
opens the existing file. If
filename.ext does not exist in the current directory
or on the MATLAB search path, a confirmation dialog box might appear
asking if you want to create a new file titled
filename.ext:
• If you click Yes, the Editor/Debugger creates a blank file titled
filename.ext. If you do not want the dialog to appear in this situation,
select that check box in the dialog. T hen , the next time you type
edit
filename.ext
, the file is cre ated with out firs t prompting you.
• If you click No, the Editor/Debugger does not create a new file. If you do
not want the dialog to appear in this situation, select that check box in the
dialog. In that case, the n ext time you type
edit filename.ext,a“file
not found
” message appears.
For more information about the confirmation dialog box, see preferences for
“Confirmation Dialogs Preferences ” on page 2-81.
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 a ll M-files. You can see different files
by changing the selection for Files of type in the dia log 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 d irectory 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 f iles and the Editor/Debug ger are determined by document positioning
guidelines. You can rearrange the documents to suit your needs. For details,
see “Opening and Arranging Documents” on page 2-8.
6-9