- rmoutliers
- movmax, and then removing duplicates
Eliminate Zero Spikes in Plot
1 view (last 30 days)
Show older comments
A calculated curve (red, "brush contact force") is based on the smoothness of the original curves (blue, "brush position" and black, "shaft surface position"). Since oscillation in the original curves will lead to "Zero" values in the red curve the plot has areas including spikes down to 0. How can I eliminate those "zero" spikes in brush contact force data keeping the upper curve shape? Only the upper curve shape is needed for further analysis.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1535405/image.png)
0 Comments
Answers (1)
Harald
on 10 Nov 2023
Hi Jörg,
if possible, please provide example data so that we can try our suggestions. Two thoughts I would try:
Best wishes,
Harald
See Also
Categories
Find more on Electrophysiology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!