removing spikes from test data.
103 views (last 30 days)
I was trying to remove the spikes from the test data. I used the medfilt1 method like below: Data_B = medfilt1(Data,7); the left is original data, the right is after process. but it did not work very well. other method like filloutliers also has been tried. I also tried to use the medfilt1 twice, but it's still nearly the same. what I want is to figure out the trend of the test data, the processed data has already showed the trending but there were still some spikes in the figure which is annoying. how should I do to remove the spikes? thanks in advance:)