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 계정에 로그인하거나 계정을 새로 만드십시오.