removing spikes from test data.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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:)

2 commentaires
Sher Akbar
le 30 Déc 2019
search literature for this purpose... basically we dont remove spikes we do replace them with the normal values.
Réponses (2)
Star Strider
le 19 Sep 2018
If you have R2017a or later, experiment with the isoutlier (link) and filloutliers (link) functions to determine if they will do what you want.
0 commentaires
Arihant Sureka
le 19 Sep 2018
Hi
Maybe you can refer to this link:
<https://in.mathworks.com/help/curvefit/smooth.html Data Smooth>
1 commentaire
Muhammad Waqar
le 16 Sep 2020
Smooth is not recommended. It is because Smooth function will also damage the physical features of the signal.
Voir également
Catégories
En savoir plus sur Smoothing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!