Eliminate Zero Spikes in Plot
显示 更早的评论
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.

回答(1 个)
Harald
2023-11-10
0 个投票
Hi Jörg,
if possible, please provide example data so that we can try our suggestions. Two thoughts I would try:
- rmoutliers
- movmax, and then removing duplicates
Best wishes,
Harald
4 个评论
Joerg Fricke-Schmidt
2023-11-10
Harald
2023-11-10
Hi Jörg,
Fc.mat seems to just contain a logical array Fc_. It's not clear to me how this relates with the plot.
Best wishes,
Harald
Joerg Fricke-Schmidt
2023-11-10
Hi Jörg,
in this case, it's actually sufficient to just remove the rows with 0 in the second column:
Fc_(Fc_(:,2) == 0, :) = [];
Best wishes,
Harald
类别
在 帮助中心 和 File Exchange 中查找有关 Half-Normal Distribution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!