Stop it!
Sometimes you just know you are going to want to break out of a loop in MATLAB, but ctrl-C is not what you are looking for because you are going to want to debug. A conditional breakpoint is not going to work either (right click on a breakpoint in the editor to make it conditional). Greg Aloe’s post: dbloop will do the job quite nicely. It will have MATLAB listen for a certain keypress and then enter debug mode in the middle of the loop. Brilliant!
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.