Stuart’s MATLAB Videos

Watch and Learn

Video Tutorial: Using visualization to debug

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. This 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.
The original thread with the question is here.
|
  • print
  • send email

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。