
6 Editing and Debugging M-Files
Creating a New File in the E ditor/Debugger
TocreateanewtextfileintheEditor/Debugger, either click the New M-file
button
on the MATLAB desktop toolbar, or select File>New>M-File
from the MATLAB desktop. The E ditor/Debugg er opens, if it is not already
open, with an untitled file in the MATLAB current directory, in which y ou can
create an M-file or another type of text file.
The location of the new file and the Editor/De bug ger are determined by
document positioning guidelines. You can rearrange the documents to suit
your needs. For details, see “Opening and Arranging Documents” o n page 2 -8.
If the Editor/Debugger is open, createmorenewfilesbyusingtheNewM-file
button
on the toolbar, or select File>New>M-File.
Other tools also provide features for creating new M-files. For example, in the
Command H istory, select statements, right-click, and select Create M-File
from the context menu. Similarly, createanewfilefromthecontextmenuin
the Current Directory browser — see “Creating New Files ” on page 5-44.
6-8
Komentarze do niniejszej Instrukcji