I recently wrote about the relatively new Pause button on the Editor portion of the MATLAB Toolstrip. Let's pause again to think about how we can exploit the awesome Pause button on the toolbar.
I already told you how you might use this button, of course, while your code is running. But there's even more you can do than I mentioned earlier.
You can also
- do several related tasks, while the code is running (i.e., a pause is not required)
- peek and see what's going on,
- then use profile on,
- wait a bit,
- then pause again, and, finally,
- use profile report
- open some other file to look at while the code is running
- set some more breakpoints while code is running
and the right thing will happen. You can set the breakpoint by
- a right click of your mouse in the area in on the left in the editor that is green, then
- a breakpoint selection
What actions to you take while using the Pause button in MATLAB? Let us know here.
Get the MATLAB code
Published with MATLAB® R2018a
Comments are closed.