Stuart’s MATLAB Videos

Watch and Learn

Video tutorial: Debugging a logical indexing problem

I love getting well formed question and challenges from fellow MATLAB users. This week I got one that works very well as a video. The problem was trying to index into a vector with a vector of ones and zeros. While this vector was all ones and zeros, it was still considered a double precision variable. I use DBSTOP to help figure out this situation. Because I was debugging this live, I made some unscripted errors that made this video a good capturing of the real confusion that comes when debugging and how to overcome those challenges.
If you want more about debugging, look at a recent MATLAB desktop blog post on the subject also.
  • print


댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.