Eliminate Zero Spikes in Plot

조회 수: 1 (최근 30일)
Joerg Fricke-Schmidt
Joerg Fricke-Schmidt 2023년 11월 10일
편집: Harald 2023년 11월 13일
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
Harald 2023년 11월 10일
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
Joerg Fricke-Schmidt 2023년 11월 10일
Oh sh..., sorry. Forgot to put the time in.
Now it should work.
Thanks a lot!
Harald
Harald 2023년 11월 13일
편집: Harald 2023년 11월 13일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by