MATH 2370 Lecture Notes - Lecture 18: Intermediate Value Theorem, Bisection Method, Numerical Analysis
Document Summary
Write some code to read only the "good" data into a vector, tempgood, until the data goes "bad" Note: need a counter i=1 while temp(i)<=200 && temp(i)>=0 tempgood(i) = temp(i) i=i+1 end. Note: didn"t preallocate because we didn"t know the length of tempgood (could use length(temp)) Matlab shortcut: end = min(find(temp<0 || temp>200))