How to replace "extreme" elements of a vector with the meadian value of the next "n" non-extreme elements and how to compute the median vector of a sinusoidal vector.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, guys!
I am trying to work on some experimental data and I would need your help. I have a vector with my results and it is clear that the beginning and the end of the vector are completely out of the landscape. I would like to replace the extreme values of the vector from the beginning and the end with the median value of next "n" elements that are not extreme (I would define extreme as more than 10% difference from the next values). After that, I would like to convert that sinusoidal vector to a smooth vector (I tried to draw a red line through the middle of the vector).
I have attached a picture with the results. I am looking forward to your answers!
Thank you very much!
Réponses (1)
Voir également
Catégories
En savoir plus sur Argument Definitions dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!