Development Environment    

Running an M-File with Breakpoints

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

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

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:

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


  Setting Breakpoints Stepping Through an M-File