Development Environment |
Ways to Edit and Debug M-Files in MATLAB
There are several methods for creating, editing, and debugging M-files, which are files containing MATLAB code.
Task |
Option |
Instructions |
Creating and Editing M-files |
MATLAB Editor |
Starting the Editor/Debugger |
MATLAB Editor in stand-alone mode (without running MATLAB) |
Opening the Editor Without Starting MATLAB |
|
Any text editor, such as Emacs or vi |
Specify the other editor as the default using preferences--see preferences for Editor |
|
Debugging M-files |
General debugging tips |
Types of Errors and Finding Errors |
MATLAB Debugger |
Using Debugging Features |
|
MATLAB debugging functions |
Using Debugging Features |
Use preferences for the Editor/Debugger to set up the editing and debugging environment to best meet your needs.
To learn more about writing M-files, see Programming and Data Types.
Editing and Debugging M-Files | Starting the Editor/Debugger |