Stuart’s MATLAB Videos

Watch and Learn

Debugging: creating a line with empty data

In this video we are sorting through some data making a different line for all the data points that match certain criteria. At some point in the algorithm none of the data meets the criteria. This is the equivalent of this: >> a = 1 a = 1 >> a(2) = line([],[],[]) Improper assignment with rectangular empty matrix. We figure out how to deal with this with a simple check around the line command.
Video Player is loading.
Current Time 0:00
Duration 3:18
Loaded: 5.02%
Stream Type LIVE
Remaining Time 3:18
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected
    |
    • 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