I have datas from accelerometer and I want to remove spikes from the FR. But keep the peak that the same as the other graphs (peak before 4.00e+6). I've tried both medfilt1 and rmoutliers, but the results are not what I wanted. Will you have an idea?