Do you have a rule that you can apply to define when a value should be ignored? (Above a certain value? distance from previous/next value?
If so, then the code could look like this:
badDataIndex = allData > 10^4;
allData = allData(~badDataIndex);
this could be done in one line as well:
allData = allData(allData<10^4);
1 Comment
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/477881-ignore-anomalies-in-data-sets#comment_739736
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/477881-ignore-anomalies-in-data-sets#comment_739736
Sign in to comment.