{"id":333,"date":"2008-12-12T16:30:54","date_gmt":"2008-12-12T16:30:54","guid":{"rendered":"https:\/\/blogs.mathworks.com\/videos\/2008\/12\/12\/video-tutorial-using-visualization-to-debug\/"},"modified":"2018-01-08T15:56:10","modified_gmt":"2018-01-08T20:56:10","slug":"video-tutorial-using-visualization-to-debug","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/videos\/2008\/12\/12\/video-tutorial-using-visualization-to-debug\/","title":{"rendered":"Video Tutorial: Using visualization to debug"},"content":{"rendered":"A question came up on the MATLAB newsgroup about debugging a sorting algorithm.  I thought this was an excellent opportunity to show how visualization of intermediate results would help to determine why an algorithm does not work as hoped.\r\n\r\nThis technique of adding intermediate plots as a means of debugging is important to MATLAB programming.  Because such visualization is easy, you should use it to make sure you understand your algorithm.\r\n\r\n<div><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"3877438006001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/div>\r\n\r\nThe original thread with the <a>question is here<\/a>.","protected":false},"excerpt":{"rendered":"<div class=\"thumbnail thumbnail_asset asset_overlay video\"><a href=\"https:\/\/blogs.mathworks.com\/videos\/2008\/12\/12\/video-tutorial-using-visualization-to-debug\/?dir=autoplay\"><img decoding=\"async\" src=\"https:\/\/cf-images.us-east-1.prod.boltdns.net\/v1\/static\/62009828001\/2fa2189b-1c6b-4675-9f80-c249aa6dc6c5\/44e8e3ea-970a-48e7-9e29-87ed1d87d083\/1280x720\/match\/image.jpg\" onError=\"this.style.display ='none';\"\/>\n      <div class=\"overlay_container\">\n      <span class=\"icon-video icon_color_null\"><time class=\"video_length\">6:29<\/time><\/span>\n      <\/div>\n      <\/a><\/div><p>A question came up on the MATLAB newsgroup about debugging a sorting algorithm.  I thought this was an excellent opportunity to show how visualization of intermediate results would help to determine&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/videos\/2008\/12\/12\/video-tutorial-using-visualization-to-debug\/\">read more >><\/a><\/p>","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,17,20],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/333"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":3308,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/333\/revisions\/3308"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}