Desktop Tools and Development Environment Previous page   Next Page

Running an M-File with Breakpoints

After setting breakpoints, run the M-file from the Command Window or the Editor/Debugger.

Running the Example

For the example, run collatzplot for the simple input value, 3, by typing in the Command Window

collatzplot(3)

The example, collatzplot, requires an input argument and therefore runs only from the Command Window and not from the Editor/Debugger.

Results of Running an M-File Containing Breakpoints

Running the M-file results in the following:

In debug mode, you can set breakpoints, step through programs, examine variables, and run other functions.


Previous page  Setting Standard Breakpoints Stepping Through an M-File Next page

© 1994-2005 The MathWorks, Inc.