I have a vector that includes some values
v=[2.4 3.5 7.4 3.6 4.5]
each value is the mean value of a row in a matrix called y
now I want to compare each value with the other values in the vector and if they are similar (with a deviation of 10%) then delete the row in y of the larger value.
I managed to compare just the neighborhood values
for i=1:length(v)-1 if v(i)==v(i+1) y(i,:)=[]; endend
I am struggling to find the right way to compare the values against each other and to include this 10%
Any help is much appreciated !
Best Answer