Development Environment    

Editing and Debugging M-Files


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 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 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.


 Closing a File Starting the Editor/Debugger