Filter löschen
Filter löschen

Eliminate Zero Spikes in Plot

3 Ansichten (letzte 30 Tage)
Joerg Fricke-Schmidt
Joerg Fricke-Schmidt am 10 Nov. 2023
Bearbeitet: Harald am 13 Nov. 2023
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.

Antworten (1)

Harald
Harald am 10 Nov. 2023
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 Kommentare
Joerg Fricke-Schmidt
Joerg Fricke-Schmidt am 10 Nov. 2023
Oh sh..., sorry. Forgot to put the time in.
Now it should work.
Thanks a lot!
Harald
Harald am 13 Nov. 2023
Bearbeitet: Harald am 13 Nov. 2023
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Electrophysiology finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by