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.
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.