{"id":1872,"date":"2006-03-15T13:23:27","date_gmt":"2006-03-15T18:23:27","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=1872"},"modified":"2006-03-15T13:23:27","modified_gmt":"2006-03-15T18:23:27","slug":"stop-it","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2006\/03\/15\/stop-it\/","title":{"rendered":"Stop it!"},"content":{"rendered":"<p>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&#8217;s post: <a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=9736&#038;objectType=file (link no longer works)\">dbloop<\/a> 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!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2006\/03\/15\/stop-it\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1872"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}