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.
Video Player is loading.
Current Time 0:00
Duration 4:48
Loaded: 3.47%
Stream Type LIVE
Remaining Time 4:48
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected
    If you want more about debugging, look at a recent MATLAB desktop blog post on the subject also.
    |
    • print

    Comments

    To leave a comment, please click here to sign in to your MathWorks Account or create a new one.

    Loading...
    Go to top of page