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

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。