Development Environment    

Running an M-File

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

Running an M-File from the Editor/Debugger.   You can run a script, that is, an M-file that doesn't require an input argument, directory from the Editor/Debugger by clicking the run button on the toolbar. You can also run it by selecting Run or Save and Run (if the file has unsaved changes) from the Debug menu. The example, collatzplot, requires an input argument and therefore runs only from the Command Window and not from the Editor/Debugger.

Running the M-file results in the following:


 Setting Breakpoints Stepping Through an M-File