How to remove "some" spikes from data

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?

Answers (1)

Try the following:
filloutliers
hampel
medfilt1

Products

Release

R2021a

Asked:

on 6 Jul 2022

Answered:

on 6 Jul 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!