Desktop Tools and Development Environment |
Ways to Edit and Debug M-Files
There are several methods for creating, editing, and debugging files with MATLAB.
Creating and Editing Files--Options |
Instructions |
---|---|
MATLAB Editor/Debugger |
See Starting, Customizing, and Closing the Editor/Debugger, and Creating, Editing, and Running Files. You can create, open, edit and save M-files as well as other file types in the MATLAB Editor/Debugger--see Creating and Editing Other Text File Types. |
MATLAB stand-alone Editor (without running MATLAB) |
See Opening the Editor Without Starting MATLAB. |
Any text editor, such as Emacs or vi |
To specify another editor as the default for use with MATLAB, select File -> Preferences -> Editor/Debugger, and for Editor, specify the Text editor. Click Help in the Preference dialog box for details. You can then debug M-files using the MATLAB Editor/Debugger or debugging functions. |
Debugging M-Files-Options |
Instructions |
---|---|
General debugging tips |
See Finding Errors in M-Files. |
MATLAB Editor/Debugger |
See Debugging Process and Features. |
MATLAB debugging functions (for use in the Command Window) |
See Debugging Process and Features. |
Use preferences for the Editor/Debugger to set up the editing and debugging environment to best meet your needs.
For information about the MATLAB language and writing M-files, see the MATLAB Programming documentation.
Use Existing M-Files and Examples | Starting, Customizing, and Closing the Editor/Debugger |
© 1994-2005 The MathWorks, Inc.