I have a matrix of measurements:
A=[x1,y1;x2,y2;x3,y3]
and my device had some interferences, so i want to delete measurements (rows) that are above 10 times the average between the neighboring points (the average y values).
example:
if A=[1,1;
2,300;
3,2;
4;4]
in this case, i want to delete the second row (it's clearly an anomaly).
Thank you