|
Ryan Utz wrote:
> Sometimes, however, when the data are erroneous the final field (flow) is listed as
> a negative number. I'd like to just omit any and all data when this is the case,
> in other words, I don't even want the dates for erroneous data to be imported. Is there
> a clean way in 'textscan' to specify when to ignore a particular line when it involves
> just one field?
Sorry, no.
> If not, anyone have any post-import ideas?
A(A(:,end) < 0),:) = [];
The above will delete all rows of A in which the last column is less than 0.
--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?
|