Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
This week's video is a quick tip to help speed up iterations when debugging MATLAB code. If your code requires user interactivity, such as selecting a file or folder from a dialog box, consider hardcoding a representative input value into your file while debugging. This eliminates for you to perform the interactive steps every time you run the code.
The video shows a couple of different approaches for switching between your debugging code and the code for the final version.
Recorded: 30 May 2013