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.
|
  • print

Comments

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