Installation guide

6
Editing and Debugging
M-Files
MATLAB provides powerful tools for creating, editing, and debugging files,
as deta iled here. For information about the MATLAB lang u ag e and writing
M-files, see the MATLAB Programming documentation.
Begin with Existing Code (p. 6-3)
Usecoderesourcessuchasyour
Command Window and History,
and existing M-files, demos, and
examples.
Ways to Edit, Evaluate, and Debug
M-Files (p. 6-5)
Use t he Editor/Debugg er in
MATLAB for M-files or any text
file.Oruseanothereditoryouhave,
along with debugging functions in
the Command Window.
Starting, Customizing, and Cl osi ng
the Editor/Debugger (p. 6-7)
Create and open files, arrange
document windows, and set
preferences.
Entering Statements in the
Editor/Debugger (p. 6-14)
Changing case, undo and redo,
comments, tab completion. Also use
features common to the Command
Window for entering statements.
Appearance of an M-File Makin g
Files More Readable ( p. 6-28)
Syntax highlighting, indenting, line
and column numbers, highlighting,
and m ore.